aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/Lnurlw.svelte
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/Lnurlw.svelte')
-rw-r--r--src/components/Lnurlw.svelte5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/components/Lnurlw.svelte b/src/components/Lnurlw.svelte
index a743bba5..0cc6f824 100644
--- a/src/components/Lnurlw.svelte
+++ b/src/components/Lnurlw.svelte
@@ -1,7 +1,7 @@
<script lang="ts">
import { tick } from "svelte";
import handler from "$lib/handler";
- import { sats, f, s, focus } from "$lib/utils";
+ import { sats, f, s, focus, loc } from "$lib/utils";
import { t } from "$lib/translations";
import { enhance } from "$app/forms";
import Numpad from "$comp/Numpad.svelte";
@@ -11,6 +11,7 @@
let { data, form } = $props();
let currency = $derived(data.user.currency);
+ let locale = $derived(loc(data.user));
let username = $derived(data.user.username);
let defaultDescription = $derived(data.defaultDescription);
let minWithdrawable = $derived(data.minWithdrawable);
@@ -56,7 +57,7 @@
{/if}
</div>
{:else}
- <Numpad bind:amount {currency} {rate} />
+ <Numpad bind:amount {currency} {rate} {locale} />
{/if}
<form use:enhance={handler(toggle)} action="?/withdraw" method="POST" class="space-y-5">