From 7237cb6c6a3b887dca9131f35709c70aa4f6dbd9 Mon Sep 17 00:00:00 2001 From: Chris Troutner Date: Fri, 14 Nov 2025 11:14:55 -0800 Subject: [PATCH] fix(nft card): Seller link only works if npub is defined --- src/components/app-body/nfts-for-sale/seller-profile.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/components/app-body/nfts-for-sale/seller-profile.js b/src/components/app-body/nfts-for-sale/seller-profile.js index 5505755..f6e9e8b 100644 --- a/src/components/app-body/nfts-for-sale/seller-profile.js +++ b/src/components/app-body/nfts-for-sale/seller-profile.js @@ -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"