diff --git a/packages/berlin/src/components/cycles/Cycles.tsx b/packages/berlin/src/components/cycles/Cycles.tsx index 2da49123..b132d0f7 100644 --- a/packages/berlin/src/components/cycles/Cycles.tsx +++ b/packages/berlin/src/components/cycles/Cycles.tsx @@ -17,11 +17,6 @@ type CyclesProps = { function Cycles({ cycles, eventId, fallback }: CyclesProps) { const navigate = useNavigate(); - const formatDate = (date: string) => { - const eventEndDate = new Date(date); - return new Intl.DateTimeFormat('en-US', { month: 'long', day: 'numeric' }).format(eventEndDate); - }; - const handleCycleClick = (cycleId: string) => { navigate(`/events/${eventId}/cycles/${cycleId}`); }; @@ -36,7 +31,6 @@ function Cycles({ cycles, eventId, fallback }: CyclesProps) { onClick={() => handleCycleClick(cycle.id)} >
{cycle?.questions[0]?.title} - {formatDate(cycle.endAt)} )) ) : ( diff --git a/packages/berlin/src/pages/Cycle.tsx b/packages/berlin/src/pages/Cycle.tsx index 45b9b76f..94d0de0b 100644 --- a/packages/berlin/src/pages/Cycle.tsx +++ b/packages/berlin/src/pages/Cycle.tsx @@ -326,7 +326,7 @@ function Cycle() { {currentCycle?.options.length ? (