From 64414ddcd4695cab04f92d6472c2c9d0b46a0169 Mon Sep 17 00:00:00 2001 From: Artem Bulgakov Date: Thu, 19 Dec 2024 21:03:07 +0300 Subject: [PATCH] fix: duplicate key error --- src/components/calendar/CalendarEventPopover.tsx | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/components/calendar/CalendarEventPopover.tsx b/src/components/calendar/CalendarEventPopover.tsx index ea8a4d9..94d3a07 100644 --- a/src/components/calendar/CalendarEventPopover.tsx +++ b/src/components/calendar/CalendarEventPopover.tsx @@ -118,9 +118,11 @@ export default function CalendarEventPopover({ {locations.map((location: string, index: number) => location.toUpperCase() !== "ONLINE" && location.toUpperCase() !== "ОНЛАЙН" ? ( -
+
) : ( -

+

{location.concat( index !== locations.length - 1 ? " / " : "", )}