diff --git a/src/app/components/Toast.svelte b/src/app/components/Toast.svelte index 4a26af56..f7dd6720 100644 --- a/src/app/components/Toast.svelte +++ b/src/app/components/Toast.svelte @@ -22,7 +22,7 @@ $effect(() => { if (!containerEl) return containerEl.addEventListener("touchmove", onTouchMove, {passive: false}) - return () => containerEl!.removeEventListener("touchmove", onTouchMove) + return () => containerEl?.removeEventListener("touchmove", onTouchMove) }) const onActionClick = () => {