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/routes/(app)/send/pot | |
| parent | b51467da14e6a3def3ce12681b5222bf49484cd5 (diff) | |
| download | coinos-ui-f4507d0758c5e3e5e879d70cb1c5dbdbfd2186e8.tar.gz coinos-ui-f4507d0758c5e3e5e879d70cb1c5dbdbfd2186e8.zip | |
currency display
Diffstat (limited to 'src/routes/(app)/send/pot')
| -rw-r--r-- | src/routes/(app)/send/pot/[name]/[...amount]/+page.svelte | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/routes/(app)/send/pot/[name]/[...amount]/+page.svelte b/src/routes/(app)/send/pot/[name]/[...amount]/+page.svelte index da761cc2..6aecf8f3 100644 --- a/src/routes/(app)/send/pot/[name]/[...amount]/+page.svelte +++ b/src/routes/(app)/send/pot/[name]/[...amount]/+page.svelte @@ -10,9 +10,12 @@ export let form; let { amount, name } = $page.params; + let { rates } = data; let { currency } = data.user; let loading; + $: rate = rates[currency]; + let submit = () => (loading = true); $: update(form); let update = () => { @@ -32,7 +35,7 @@ {/if} <div class="container px-4 mt-20 max-w-xl mx-auto"> - <Numpad bind:amount {currency} /> + <Numpad bind:amount {currency} bind:rate /> <form method="POST" use:enhance on:submit={submit}> <input name="name" value={name} type="hidden" /> |
