From bdb472ac377b0b0ab99074345e9645f66e5a5c8e Mon Sep 17 00:00:00 2001 From: zmeyer44 Date: Tue, 31 Oct 2023 10:27:16 -0400 Subject: [PATCH] fixing events on explore page --- app/(app)/explore/_components/CalendarCard.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/(app)/explore/_components/CalendarCard.tsx b/app/(app)/explore/_components/CalendarCard.tsx index 7ca9095..2b30122 100644 --- a/app/(app)/explore/_components/CalendarCard.tsx +++ b/app/(app)/explore/_components/CalendarCard.tsx @@ -17,7 +17,7 @@ import { getNameToShow } from "@/lib/utils"; import { nip19 } from "nostr-tools"; import useProfile from "@/lib/hooks/useProfile"; import useEvents from "@/lib/hooks/useEvents"; -import { getTagAllValues, getTagValues } from "@/lib/nostr/utils"; +import { getTagsValues, getTagValues } from "@/lib/nostr/utils"; import { useNDK } from "@/app/_providers/ndk"; import { Skeleton } from "@/components/ui/skeleton"; import { AspectRatio } from "@/components/ui/aspect-ratio"; @@ -40,8 +40,9 @@ export default function CalendarCard({ calendar }: CalendarCardProps) { const banner = getTagValues("banner", tags) ?? profile?.image ?? profile?.banner ?? BANNER; const description = content ?? getTagValues("about", tags); - const calendarEvents = getTagAllValues("a", tags); + const calendarEvents = getTagsValues("a", tags); const calendarEventIdentifiers = calendarEvents + .filter(Boolean) .map((e) => nip19.decode(e)) .filter(({ type }) => type === "naddr") .map((e) => e.data as nip19.AddressPointer);