Compare commits

...
2 Commits
Author SHA1 Message Date
Chris Troutner d72d98a2d7 Merge pull request #77 from Permissionless-Software-Foundation/ct-unstable
fix(nft card): Seller link only works if npub is defined
2025-11-14 11:15:37 -08:00
Chris Troutner 7237cb6c6a fix(nft card): Seller link only works if npub is defined 2025-11-14 11:14:55 -08:00
@@ -43,8 +43,10 @@ function SellerProfile (props) {
// go to profile
const goToProfile = () => {
const profileUrl = `${window.location.origin}/profile/${npub}#single-view`
window.open(profileUrl, '_blank')
if (npub) {
const profileUrl = `${window.location.origin}/profile/${npub}#single-view`
window.open(profileUrl, '_blank')
}
}
// Get display name - use profile name, npub short form, or "Anonymous User"