From c5673f1ad4e1a425785e6a04eceafda2c8dedd18 Mon Sep 17 00:00:00 2001 From: bytedream Date: Thu, 29 Oct 2026 14:18:25 +0100 Subject: [PATCH] fix svelte warning --- src/app/website/index/Countdown.svelte | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/src/app/website/index/Countdown.svelte b/src/app/website/index/Countdown.svelte index e9ddd40..47fd515 100644 --- a/src/app/website/index/Countdown.svelte +++ b/src/app/website/index/Countdown.svelte @@ -7,13 +7,15 @@ let { end }: Props = $props(); - const title = `Spielstart ist am ${end.toLocaleString('de-DE', { - day: '2-digit', - month: 'long', - year: 'numeric', - hour: '2-digit', - minute: '2-digit' - })} Uhr`; + let title = $derived( + `Spielstart ist am ${end.toLocaleString('de-DE', { + day: '2-digit', + month: 'long', + year: 'numeric', + hour: '2-digit', + minute: '2-digit' + })} Uhr` + ); function getUntil(): [number, number, number, number] { const now = new Date();