diff options
| author | Adam Soltys <[email protected]> | 2026-03-03 14:49:16 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2026-03-03 14:49:16 -0800 |
| commit | 1109581ac894bc7f872c53989d1aecde7cfa229f (patch) | |
| tree | 415b76b641a5036679a7acbb85d10103775cad4e /src/components/Account.svelte | |
| parent | 6624b19b1d954dc69afbf1a9f6072e791771aff5 (diff) | |
| download | coinos-ui-1109581ac894bc7f872c53989d1aecde7cfa229f.tar.gz coinos-ui-1109581ac894bc7f872c53989d1aecde7cfa229f.zip | |
preload
Diffstat (limited to 'src/components/Account.svelte')
| -rw-r--r-- | src/components/Account.svelte | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/components/Account.svelte b/src/components/Account.svelte index 8388a9a7..44b53bdf 100644 --- a/src/components/Account.svelte +++ b/src/components/Account.svelte @@ -86,6 +86,8 @@ } }; + let receiveUrl = $derived(id === user.id ? `/${user.username}/receive` : "/invoice"); + let displayType = $derived( accountType === "ark" ? $t("accounts.ark") @@ -163,14 +165,14 @@ </div> <div class="flex w-full text-xl gap-2"> - <a href={"/invoice"} class="contents" onclick={(e) => setAccount(e, "/invoice")}> + <a href={receiveUrl} class="contents" data-sveltekit-preload-data="tap" onclick={(e) => setAccount(e, receiveUrl)}> <button class="btn !w-auto flex-1" data-testid="account-receive"> <PhHandCoinsBold width="32" style="transform: scaleX(-1)" /> <div class="my-auto">{$t("user.dashboard.receive")}</div> </button> </a> - <a href={`/send`} class="contents" onclick={(e) => setAccount(e, "/send")}> + <a href={`/send`} class="contents" data-sveltekit-preload-data="tap" onclick={(e) => setAccount(e, "/send")}> <button type="button" class="btn !w-auto flex-1"> <PhPaperPlaneRightBold width="32" /> <div class="my-auto">{$t("user.dashboard.send")}</div> |
