diff options
| author | Adam Soltys <[email protected]> | 2026-02-11 17:09:39 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2026-02-11 17:09:39 -0800 |
| commit | 3aa9ce1b5985397d7f568887ec6f881df13c1034 (patch) | |
| tree | 2c459692dc5315e92924de6be9f0999a835e0f54 /src/components/Success.svelte | |
| parent | 8a4b0087cbfe8b43d9b43d19af6d991a646ef3d7 (diff) | |
| download | coinos-ui-3aa9ce1b5985397d7f568887ec6f881df13c1034.tar.gz coinos-ui-3aa9ce1b5985397d7f568887ec6f881df13c1034.zip | |
fix ts errors
Diffstat (limited to 'src/components/Success.svelte')
| -rw-r--r-- | src/components/Success.svelte | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/components/Success.svelte b/src/components/Success.svelte index 20557f9f..6a0e8eae 100644 --- a/src/components/Success.svelte +++ b/src/components/Success.svelte @@ -2,9 +2,9 @@ import { browser } from "$app/environment"; import { scale } from "svelte/transition"; import Amount from "$comp/Amount.svelte"; - const { amount, tip, rate, currency, locale, title } = $props(); + const { amount, tip = undefined, rate, currency, locale, title = "" }: any = $props(); - let ConfettiComp = $state(null); + let ConfettiComp: any = $state(null); let loaded = $state(false); $effect(() => { if (browser) @@ -13,10 +13,12 @@ }); }); - $effect(async () => { + $effect(() => { if (!browser || !loaded || ConfettiComp) return; - const mod = await import("svelte-confetti"); - ConfettiComp = mod.Confetti; + (async () => { + const mod = await import("svelte-confetti"); + ConfettiComp = mod.Confetti; + })(); }); </script> |
