From 05f3a9062bfff1677f01e2f19e1dd6644e508156 Mon Sep 17 00:00:00 2001 From: zmeyer44 Date: Thu, 9 Nov 2023 16:37:37 -0600 Subject: [PATCH] test --- containers/EventsTimeline/index.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/containers/EventsTimeline/index.tsx b/containers/EventsTimeline/index.tsx index 76ada03..09a64a3 100644 --- a/containers/EventsTimeline/index.tsx +++ b/containers/EventsTimeline/index.tsx @@ -9,7 +9,7 @@ import { getTagValues } from "@/lib/nostr/utils"; import { fromUnix, daysOffset } from "@/lib/utils/dates"; import Spinner from "@/components/spinner"; import CalendarSection, { CalendarSectionLoading } from "./CalendarSection"; - +import { uniqBy } from "ramda"; type EventsTimelineProps = { filter?: NDKFilter; loader?: () => JSX.Element; @@ -23,7 +23,9 @@ export default function EventsTimeline({ const { events, isLoading } = useEvents({ filter: { kinds: [31923 as NDKKind], ...filter }, }); - const eventsByDay = groupEventsByDay(events); + const eventsByDay = groupEventsByDay( + uniqBy((e) => getTagValues("d", e.tags), events), + ); if (isLoading) { if (Loader) {