aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/Account.svelte
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/Account.svelte')
-rw-r--r--src/components/Account.svelte3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/components/Account.svelte b/src/components/Account.svelte
index f83068b5..ab24f56a 100644
--- a/src/components/Account.svelte
+++ b/src/components/Account.svelte
@@ -8,6 +8,9 @@
let { seed, balance, id } = account;
$: type = seed ? "Savings" : "Cash";
+ $: refresh(account);
+ let refresh = (a) => ({ seed, balance, id } = a)
+
let setAccount = () =>
document.cookie = `account=${id}; path=/; max-age=86400`;
</script>