fix: use findTag
This commit is contained in:
@ -69,8 +69,7 @@ export function ProfilePage() {
|
|||||||
|
|
||||||
function goToLive() {
|
function goToLive() {
|
||||||
if (liveEvent) {
|
if (liveEvent) {
|
||||||
const d =
|
const d = findTag(liveEvent, "d") || "";
|
||||||
liveEvent.tags?.find((t: string[]) => t?.at(0) === "d")?.at(1) || "";
|
|
||||||
const naddr = encodeTLV(
|
const naddr = encodeTLV(
|
||||||
NostrPrefix.Address,
|
NostrPrefix.Address,
|
||||||
d,
|
d,
|
||||||
|
Reference in New Issue
Block a user