Fix start time null (#323)

This commit is contained in:
Erik Vroon
2023-11-08 17:10:08 +01:00
committed by GitHub
parent d77dd1432b
commit 5c78ee922f
2 changed files with 3 additions and 2 deletions

View File

@@ -55,7 +55,8 @@ export function MatchBadge({ match, theme }: { match: MatchInterface; theme: any
>
<Center>
<b>
{match.court?.name} | <Time datetime={match.start_time} />
{match.court?.name} |{' '}
{match.start_time != null ? <Time datetime={match.start_time} /> : null}
</b>
</Center>
</div>

View File

@@ -59,7 +59,7 @@ function ScheduleRow({
</Text>
</Group>
<Badge color="gray" variant="dot" size="lg">
<Time datetime={match.start_time} />
{match.start_time != null ? <Time datetime={match.start_time} /> : null}
</Badge>
</Group>
<Badge color={stageItemColor} variant="outline">