diff --git a/frontend/src/lib/components/Toast.svelte b/frontend/src/lib/components/Toast.svelte index c31f9deec0..8728a631dd 100644 --- a/frontend/src/lib/components/Toast.svelte +++ b/frontend/src/lib/components/Toast.svelte @@ -1,8 +1,6 @@ @@ -73,9 +72,9 @@ onDestroy(() => { delete toastStates[toastId] }) - let state = $derived.by(() => toastStates[toastId]) + let state = $derived.by(() => toastStates[toastId] as ToastState | undefined) $effect(() => { - if (!state.alive) { + if (!state) { toast.pop(toastId) } }) @@ -88,8 +87,8 @@