From 4e543c134633dbe2b424d4af86d9b946432c29a2 Mon Sep 17 00:00:00 2001 From: Robert Eggl Date: Sat, 14 Dec 2024 03:56:25 +0100 Subject: [PATCH] fix(events): fix camus life event filtering logic --- src/components/Map/MapScreen.tsx | 3 --- src/utils/events-utils.ts | 9 ++------- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/src/components/Map/MapScreen.tsx b/src/components/Map/MapScreen.tsx index d164c66a..b9d7e132 100644 --- a/src/components/Map/MapScreen.tsx +++ b/src/components/Map/MapScreen.tsx @@ -701,9 +701,6 @@ const MapScreen = (): JSX.Element => { ) }, [availableFilteredGeoJSON]) - // get is ipados using react native dvice info - - console.log('isIpadOS', isIpadOS) return ( - x.end === null || - x.end > new Date() || - x.titles.de !== '' || - x.titles.en !== '' - ) + .filter((x) => x.end == null || x.end > new Date()) + .filter((x) => x.titles.de !== '' || x.titles.en !== '') return newEvents }