fix: use findTag

This commit is contained in:
Alejandro Gomez 2023-07-01 19:17:48 +02:00
parent c733c4066a
commit 9747b71f8a
No known key found for this signature in database
GPG Key ID: 4DF39E566658C817

View File

@ -69,8 +69,7 @@ export function ProfilePage() {
function goToLive() {
if (liveEvent) {
const d =
liveEvent.tags?.find((t: string[]) => t?.at(0) === "d")?.at(1) || "";
const d = findTag(liveEvent, "d") || "";
const naddr = encodeTLV(
NostrPrefix.Address,
d,