fix svelte warning
This commit is contained in:
1 parent
cba04f482c
commit
c5673f1ad4
1 file changed
+4
-2
@@ -7,13 +7,15 @@
|
|||||||
|
|
||||||
let { end }: Props = $props();
|
let { end }: Props = $props();
|
||||||
|
|
||||||
const title = `Spielstart ist am ${end.toLocaleString('de-DE', {
|
let title = $derived(
|
||||||
|
`Spielstart ist am ${end.toLocaleString('de-DE', {
|
||||||
day: '2-digit',
|
day: '2-digit',
|
||||||
month: 'long',
|
month: 'long',
|
||||||
year: 'numeric',
|
year: 'numeric',
|
||||||
hour: '2-digit',
|
hour: '2-digit',
|
||||||
minute: '2-digit'
|
minute: '2-digit'
|
||||||
})} Uhr`;
|
})} Uhr`
|
||||||
|
);
|
||||||
|
|
||||||
function getUntil(): [number, number, number, number] {
|
function getUntil(): [number, number, number, number] {
|
||||||
const now = new Date();
|
const now = new Date();
|
||||||
|
|||||||
Reference in new issue
Block a user