aboutsummaryrefslogtreecommitdiffstats
path: root/src/routes/(app)/send
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2024-04-18 11:36:01 -0700
committerAdam Soltys <[email protected]>2024-04-18 11:36:01 -0700
commit73169e1336333b2bd450584a117c8057876d0b9c (patch)
treee3ba6d057e38c29326330ac22529524060e81631 /src/routes/(app)/send
parent845d87e5af2b31646f6684180651dbb01fb4ff71 (diff)
downloadcoinos-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.svelte9
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 },
});