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 | 8fe6be491b6961f2ec5abb81154b7561467a3a1b (patch) | |
| tree | 3b6f19c58531e695f6f9c90e7494dc94ae5e7e31 /src | |
| parent | 231f409a8eaed57f44a5180ea93062ae136907e2 (diff) | |
| download | coinos-ui-8fe6be491b6961f2ec5abb81154b7561467a3a1b.tar.gz coinos-ui-8fe6be491b6961f2ec5abb81154b7561467a3a1b.zip | |
missing import
Diffstat (limited to 'src')
| -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} /> |
