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) {