From 24489e56d300901834ba3e4b40d2bfb503ee0c21 Mon Sep 17 00:00:00 2001 From: SD Date: Wed, 27 Mar 2024 18:52:19 +0400 Subject: [PATCH] fix: fix sessions --- src/components/Account/SessionsTabs.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);