fix: test client tag format

This commit is contained in:
2025-04-30 11:22:22 +01:00
parent e6ca368134
commit 1820e7426d

View File

@ -5,7 +5,7 @@ import { Link } from "react-router-dom";
export function ClientTag({ ev }: { ev: TaggedNostrEvent }) {
const tag = ev.tags.find(a => a[0] === "client");
if (!tag) return;
const link = tag[2] ? NostrLink.fromTag(["a", tag[2]]) : undefined;
const link = tag[2] && tag[2].includes(":") ? NostrLink.fromTag(["a", tag[2]]) : undefined;
return (
<span className="text-xs text-gray-light">
{" "}