diff options
Diffstat (limited to 'src/routes/(app)/send/fund')
| -rw-r--r-- | src/routes/(app)/send/fund/[...name]/[...amount]/+page.svelte | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/routes/(app)/send/fund/[...name]/[...amount]/+page.svelte b/src/routes/(app)/send/fund/[...name]/[...amount]/+page.svelte index f6b8cb6d..9cedbf8a 100644 --- a/src/routes/(app)/send/fund/[...name]/[...amount]/+page.svelte +++ b/src/routes/(app)/send/fund/[...name]/[...amount]/+page.svelte @@ -4,9 +4,9 @@ import Numpad from "$comp/Numpad.svelte"; import Spinner from "$comp/Spinner.svelte"; import { page } from "$app/stores"; - import { pin } from "$lib/store"; + import { fiat as fiatStore, pin } from "$lib/store"; import handler from "$lib/handler"; - import { loc, s } from "$lib/utils"; + import { loc, s, f, sats } from "$lib/utils"; import { applyAction, deserialize } from "$app/forms"; let { data, form } = $props(); @@ -68,7 +68,12 @@ class="btn !w-auto grow" onclick={setMax} disabled={submitting} - onkeydown={setMax}>Max ⚡️{s(balance)}</button + onkeydown={setMax} + >{#if $fiatStore} + Max {f((balance * rate) / sats, currency, locale)} + {:else} + Max ⚡️{s(balance)} + {/if}</button > <button |
