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)