aboutsummaryrefslogtreecommitdiffstats
path: root/src/routes/(app)/send
diff options
context:
space:
mode:
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 },
});