hide "_@" part of nip-05 identifiers

This commit is contained in:
Grant
2023-07-15 12:44:55 -05:00
committed by GitHub
parent fb1f242b7c
commit e831a1493b

View File

@@ -30,7 +30,7 @@ export const UserDnsIdentityIcon = ({ pubkey, onlyIcon }: { pubkey: string; only
} }
return ( return (
<Text as="span" whiteSpace="nowrap"> <Text as="span" whiteSpace="nowrap">
{metadata.nip05} {renderIcon()} {metadata.nip05.startsWith("_@")?metadata.nip05.substr(2):metadata.nip05} {renderIcon()}
</Text> </Text>
); );
}; };