From 1da332eec19e3dadffbe5fb10baf317fc2906e26 Mon Sep 17 00:00:00 2001 From: Nevo David Date: Fri, 26 Dec 2025 11:21:12 +0700 Subject: [PATCH] feat: sentry errors --- .../src/components/launches/calendar.tsx | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/apps/frontend/src/components/launches/calendar.tsx b/apps/frontend/src/components/launches/calendar.tsx index 67b176bd..2f72c92c 100644 --- a/apps/frontend/src/components/launches/calendar.tsx +++ b/apps/frontend/src/components/launches/calendar.tsx @@ -110,10 +110,10 @@ export const DayView = () => { const options = useMemo(() => { const createdPosts = posts.map((post) => ({ integration: [integrations.find((i) => i.id === post.integration.id)!], - image: post.integration.picture, - identifier: post.integration.providerIdentifier, - id: post.integration.id, - name: post.integration.name, + image: post?.integration?.picture || '', + identifier: post?.integration?.providerIdentifier || '', + id: post?.integration?.id || '', + name: post?.integration?.name || '', time: dayjs .utc(post.publishDate) .diff(dayjs.utc(post.publishDate).startOf('day'), 'minute'), @@ -126,11 +126,11 @@ export const DayView = () => { ...integrations.flatMap((p) => p.time.flatMap((t) => ({ integration: p, - identifier: p.identifier, - name: p.name, - id: p.id, - image: p.picture, - time: t.time, + identifier: p?.identifier, + name: p?.name, + id: p?.id, + image: p?.picture, + time: t?.time, })) ), ],