fix: fix sessions
This commit is contained in:
parent
13954fc539
commit
24489e56d3
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue