From bd410c0b4937bc4df46e28a900b9a96fc2f266f0 Mon Sep 17 00:00:00 2001 From: zmeyer44 Date: Fri, 3 Nov 2023 08:49:17 -0400 Subject: [PATCH] fixing refernece --- app/(app)/event/[naddr]/page.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/(app)/event/[naddr]/page.tsx b/app/(app)/event/[naddr]/page.tsx index acfcbca..117eeb8 100644 --- a/app/(app)/event/[naddr]/page.tsx +++ b/app/(app)/event/[naddr]/page.tsx @@ -16,7 +16,7 @@ import LocationContainer from "./_components/LocationContainer"; import AnnouncementsContainer from "./_components/AnnouncementsContainer"; import DiscussionContainer from "./_components/DiscussionContainer"; import AttendeesContainer from "./_components/AttendeesContainer"; -import { add, get } from "@/lib/server-actions/events/cache"; +import { add } from "@/lib/server-actions/events/cache"; import { BANNER } from "@/constants"; export default function EventPage({ @@ -31,6 +31,7 @@ export default function EventPage({ throw new Error("Invalid list"); } const { identifier, kind, pubkey } = data; + const { events } = useEvents({ filter: { authors: [pubkey], @@ -66,7 +67,7 @@ export default function EventPage({ ); } const { tags } = event; - const eventReference = event.encode(); + const eventReference = event.tagId(); const location = getTagAllValues("location", tags)[0] ? getTagAllValues("location", tags)