diff options
Diffstat (limited to 'src/components/Lnurlw.svelte')
| -rw-r--r-- | src/components/Lnurlw.svelte | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/components/Lnurlw.svelte b/src/components/Lnurlw.svelte index 50aa1488..a9b6695a 100644 --- a/src/components/Lnurlw.svelte +++ b/src/components/Lnurlw.svelte @@ -1,6 +1,4 @@ <script> - import { run } from 'svelte/legacy'; - import { sats, f, s } from "$lib/utils"; import { t } from "$lib/translations"; import { enhance } from "$app/forms"; @@ -19,10 +17,7 @@ callback, rates, } = data; - let rate; - run(() => { - rate = rates[currency]; - }); + let rate = $derived(rates[currency]); let amount = $state(Math.round(minWithdrawable / 1000)), loading = $state(); |
