fix: fix sessions

This commit is contained in:
SD 2024-03-27 18:52:19 +04:00
parent 13954fc539
commit 24489e56d3
1 changed files with 1 additions and 1 deletions

View File

@ -75,7 +75,7 @@ export const SessionsTabs = ({ intlConfig, locale }: { intlConfig: Record<string
</div> </div>
</div> </div>
<div className="list-session"> <div className="list-session">
{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 client = clients?.length ? clients[0] : null;
const current = +userId !== client?.id ? client : coach; const current = +userId !== client?.id ? client : coach;
const startDate = dayjs(scheduledStartAtUtc).locale(locale); const startDate = dayjs(scheduledStartAtUtc).locale(locale);