Merge pull request #3 from grantonthenet/patch-1

hide "_@" part of nip-05 identifiers
This commit is contained in:
hzrd149
2023-07-16 14:16:57 -05:00
committed by GitHub

View File

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