From 00614f11be4c136b295ca87bfcf5c77a4eb3ab23 Mon Sep 17 00:00:00 2001 From: zmeyer44 Date: Thu, 2 Nov 2023 09:12:09 -0400 Subject: [PATCH] uniqby bug fix --- app/(app)/explore/_sections/ExploreCalendars.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/(app)/explore/_sections/ExploreCalendars.tsx b/app/(app)/explore/_sections/ExploreCalendars.tsx index b505432..3730816 100644 --- a/app/(app)/explore/_sections/ExploreCalendars.tsx +++ b/app/(app)/explore/_sections/ExploreCalendars.tsx @@ -10,6 +10,7 @@ import { uniqBy } from "ramda"; import CalendarCard, { LoadingCalendarCard } from "../_components/CalendarCard"; import { getTagValues } from "@/lib/nostr/utils"; + export default function ExploreCalendars() { return (
@@ -33,11 +34,12 @@ function HorizontalCarousel() { limit: 5, }, }); + console.log("explore calendars", events); if (events.length) { return (
- {uniqBy((e) => getTagValues("title", e.tags), events).map( + {uniqBy((e) => getTagValues("d", e.tags), events).map( (calendar, index) => (