diff options
| author | Adam Soltys <[email protected]> | 2024-04-18 11:36:01 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2024-04-18 11:36:01 -0700 |
| commit | 73169e1336333b2bd450584a117c8057876d0b9c (patch) | |
| tree | e3ba6d057e38c29326330ac22529524060e81631 /src/routes/(app)/send | |
| parent | 845d87e5af2b31646f6684180651dbb01fb4ff71 (diff) | |
| download | coinos-ui-73169e1336333b2bd450584a117c8057876d0b9c.tar.gz coinos-ui-73169e1336333b2bd450584a117c8057876d0b9c.zip | |
use subject currency
Diffstat (limited to 'src/routes/(app)/send')
| -rw-r--r-- | src/routes/(app)/send/invoice/[id]/+page.svelte | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/routes/(app)/send/invoice/[id]/+page.svelte b/src/routes/(app)/send/invoice/[id]/+page.svelte index e3ee9297..af3f5913 100644 --- a/src/routes/(app)/send/invoice/[id]/+page.svelte +++ b/src/routes/(app)/send/invoice/[id]/+page.svelte @@ -51,9 +51,14 @@ let submit = () => (submitting = true); let external = async () => { - let invoice = { type: "lightning", amount, currency }; let { id } = await post(`/${recipient.username}/invoice`, { - invoice, + invoice: { + ...invoice, + type: "lightning", + amount, + currency, + rate, + }, user: { username: recipient.username }, }); |
