fix(nft card): Seller link only works if npub is defined

This commit is contained in:
Chris Troutner
2025-11-14 11:14:55 -08:00
parent 93c8eb42d3
commit 7237cb6c6a
@@ -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"