From a9b44cbae79e9c01cff07964a45e1c7efa7fb241 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Thu, 5 Dec 2024 19:20:36 -0800 Subject: cached rates --- src/components/Lnurlp.svelte | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/components/Lnurlp.svelte') diff --git a/src/components/Lnurlp.svelte b/src/components/Lnurlp.svelte index ab869e22..8f14ddff 100644 --- a/src/components/Lnurlp.svelte +++ b/src/components/Lnurlp.svelte @@ -9,11 +9,9 @@ let { data, form, send = $bindable(), comment = $bindable() } = $props(); let { currency } = data.user; - let { minSendable, maxSendable, commentAllowed, callback, metadata, rates } = + let { minSendable, maxSendable, commentAllowed, callback, metadata, rate } = data; - let rate = $derived(rates[currency]); - let amount = $state(Math.round(minSendable / 1000)), loading = $state(); let submit = () => (loading = true); -- cgit v1.2.3