diff options
| author | Adam Soltys <[email protected]> | 2023-03-29 08:08:41 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2023-03-29 08:08:41 -0700 |
| commit | f4507d0758c5e3e5e879d70cb1c5dbdbfd2186e8 (patch) | |
| tree | 2b838c3cf248b7d570459f7c5831e864be367a25 /src/components/Lnurlp.svelte | |
| parent | b51467da14e6a3def3ce12681b5222bf49484cd5 (diff) | |
| download | coinos-ui-f4507d0758c5e3e5e879d70cb1c5dbdbfd2186e8.tar.gz coinos-ui-f4507d0758c5e3e5e879d70cb1c5dbdbfd2186e8.zip | |
currency display
Diffstat (limited to 'src/components/Lnurlp.svelte')
| -rw-r--r-- | src/components/Lnurlp.svelte | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/components/Lnurlp.svelte b/src/components/Lnurlp.svelte index ab0c50ce..9918a3f4 100644 --- a/src/components/Lnurlp.svelte +++ b/src/components/Lnurlp.svelte @@ -6,7 +6,9 @@ export let data, form; let { currency } = data.user; - let { minSendable, maxSendable, callback, metadata } = data; + let { minSendable, maxSendable, callback, metadata, rates } = data; + + $: rate = rates[currency]; let amount = Math.round(minSendable / 1000), loading; @@ -33,7 +35,7 @@ </div> {/if} - <Numpad bind:amount {currency} /> + <Numpad bind:amount bind:rate {currency} /> <form action="?/pay" method="POST" use:enhance on:submit={submit}> <input name="amount" value={amount} type="hidden" /> |
