Merge pull request #77 from Permissionless-Software-Foundation/ct-unstable

fix(nft card): Seller link only works if npub is defined
This commit is contained in:
Chris Troutner
2025-11-14 11:15:37 -08:00
committed by GitHub
@@ -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"