diff --git a/src/components/Account/SessionsTabs.tsx b/src/components/Account/SessionsTabs.tsx index f9c5ca1..af22a1f 100644 --- a/src/components/Account/SessionsTabs.tsx +++ b/src/components/Account/SessionsTabs.tsx @@ -75,7 +75,7 @@ export const SessionsTabs = ({ intlConfig, locale }: { intlConfig: Record
- {list?.length > 0 ? list?.map(({ id, scheduledStartAtUtc, scheduledEndAtUtc, title, coach, clients }) => { + {list && list?.length > 0 ? list?.map(({ id, scheduledStartAtUtc, scheduledEndAtUtc, title, coach, clients }) => { const client = clients?.length ? clients[0] : null; const current = +userId !== client?.id ? client : coach; const startDate = dayjs(scheduledStartAtUtc).locale(locale);