From ef859f52d015f0471a5c99051fbad8cb4af155e8 Mon Sep 17 00:00:00 2001 From: SD Date: Wed, 27 Mar 2024 19:18:58 +0400 Subject: [PATCH] fix: fix sessions --- src/components/Account/SessionsTabs.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/Account/SessionsTabs.tsx b/src/components/Account/SessionsTabs.tsx index 24ccd7f..b314121 100644 --- a/src/components/Account/SessionsTabs.tsx +++ b/src/components/Account/SessionsTabs.tsx @@ -115,7 +115,7 @@ export const SessionsTabs = ({ intlConfig, locale }: { intlConfig: Record {intlConfig?.upcoming || 'Tab 1'} - {sessions?.upcoming?.length > 0 ? ({sessions?.upcoming.length}) : null} + {sessions?.upcoming && sessions?.upcoming?.length > 0 ? ({sessions?.upcoming.length}) : null} ), children: getChildren(sessions?.upcoming) @@ -125,7 +125,7 @@ export const SessionsTabs = ({ intlConfig, locale }: { intlConfig: Record {intlConfig?.requested || 'Tab 2'} - {sessions?.requested?.length > 0 ? ({sessions?.requested.length}) : null} + {sessions?.requested && sessions?.requested?.length > 0 ? ({sessions?.requested.length}) : null} ), children: getChildren(sessions?.requested)