chore: Update translations

This commit is contained in:
kieran 2024-05-13 15:32:10 +00:00
parent b988a73e36
commit daa687957e
2 changed files with 2 additions and 4 deletions

View File

@ -197,9 +197,7 @@ function ProfileClip({ ev }: { ev: NostrEvent }) {
id="dkUMIH"
values={{
name: (
<Link
to={profileLink(profile, ev.pubkey)}
className="font-medium text-primary">
<Link to={profileLink(profile, ev.pubkey)} className="font-medium text-primary">
{getName(ev.pubkey, profile)}
</Link>
),

View File

@ -37,7 +37,7 @@ export function getHost(ev?: NostrEvent) {
export function profileLink(meta: CachedMetadata | undefined, pubkey: string) {
if (meta && meta.nip05 && meta.nip05.endsWith("@zap.stream") && meta.isNostrAddressValid) {
const [name,] = meta.nip05.split("@");
const [name] = meta.nip05.split("@");
return `/p/${name}`;
}
return `/p/${hexToBech32("npub", pubkey)}`;