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
commit066c99a97ce2e7481120b8d4685961c907d15731 (patch)
treee3ba6d057e38c29326330ac22529524060e81631 /src/routes/(app)/send
parentbf3163fc1ffc9630b874dbe54a0bf28d11987962 (diff)
downloadcoinos-ui-066c99a97ce2e7481120b8d4685961c907d15731.tar.gz
coinos-ui-066c99a97ce2e7481120b8d4685961c907d15731.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 },
});