Fix Freeze
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful

Dieser Commit ist enthalten in:
Chaoscaot 2024-01-07 12:42:48 +01:00
Ursprung cb6d5bfd9e
Commit 66c57e8aa6

Datei anzeigen

@ -155,7 +155,7 @@
$: minTime = dayjs(Math.min(...fights.map(fight => fight.start))).utc(true); $: minTime = dayjs(Math.min(...fights.map(fight => fight.start))).utc(true);
let changeTimeOpen = false; let changeTimeOpen = false;
let changedTime = dayjs(Math.min(...fights.map(fight => fight.start), 0))?.utc(true).toISOString()?.slice(0, -1); let changedTime = fights.length != 0 ? dayjs(Math.min(...fights.map(fight => fight.start)))?.utc(true)?.toISOString()?.slice(0, -1) : undefined;
$: deltaTime = dayjs.duration(dayjs(changedTime).utc(true).diff(minTime)) $: deltaTime = dayjs.duration(dayjs(changedTime).utc(true).diff(minTime))
@ -194,7 +194,7 @@
<CalendarWeekOutline/> <CalendarWeekOutline/>
</ToolbarButton> </ToolbarButton>
<Tooltip>Reschedule Fights</Tooltip> <Tooltip>Reschedule Fights</Tooltip>
<ToolbarButton on:click={() => selectedFights.size > 0 ? kampfleiterOpen = true : kampfleiterOpen = false}> <ToolbarButton on:click={() => selectedFights.size > 0 ? kampfleiterOpen = true : kampfleiterOpen = false} disabled={changedTime === undefined}>
<ProfileCardOutline/> <ProfileCardOutline/>
</ToolbarButton> </ToolbarButton>
<Tooltip>Change Kampfleiter</Tooltip> <Tooltip>Change Kampfleiter</Tooltip>