diff options
| author | Adam Soltys <[email protected]> | 2024-11-07 16:47:26 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2024-11-07 16:47:28 -0800 |
| commit | c67d18de4fd7493f3bea2b7b2abb48258c8b3420 (patch) | |
| tree | 3b6f19c58531e695f6f9c90e7494dc94ae5e7e31 /src/components | |
| parent | dc9be6936ec838d4a64b53ba98f3b85417afa0a4 (diff) | |
| download | coinos-ui-c67d18de4fd7493f3bea2b7b2abb48258c8b3420.tar.gz coinos-ui-c67d18de4fd7493f3bea2b7b2abb48258c8b3420.zip | |
missing import
Diffstat (limited to 'src/components')
| -rw-r--r-- | src/components/Account.svelte | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/components/Account.svelte b/src/components/Account.svelte index 310e5a70..38c8c418 100644 --- a/src/components/Account.svelte +++ b/src/components/Account.svelte @@ -1,4 +1,5 @@ <script> + import { goto } from "$app/navigation"; import Icon from "$comp/Icon.svelte"; import Balance from "$comp/Balance.svelte"; import { t } from "$lib/translations"; @@ -11,16 +12,16 @@ let refresh = (a) => ({ seed, balance, id } = a); let setAccount = () => (document.cookie = `aid=${id}; path=/; max-age=86400`); - let go = (url) => { + let go = () => { setAccount(); - goto(url); + goto("/payments"); }; </script> <div class="block space-y-2 border-primary py-4 cursor-pointer" class:border-b-8={!last} - on:click={() => go("/payments")} + on:click={go} > <div class="flex"> <Balance {balance} {user} {rate} /> |
