aboutsummaryrefslogtreecommitdiffstats
path: root/src/routes/invoice.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/routes/invoice.js')
-rw-r--r--src/routes/invoice.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/routes/invoice.js b/src/routes/invoice.js
index 49bcfe70..147da2b7 100644
--- a/src/routes/invoice.js
+++ b/src/routes/invoice.js
@@ -1,4 +1,5 @@
import got from 'got';
+import { invoiceAmount } from '$lib/store';
const username = 'bob',
network = 'lightning';
@@ -6,7 +7,7 @@ const username = 'bob',
export async function GET({ params }) {
let text = await got
.post('http://localhost:3119/lightning/invoice', {
- json: { amount: 100 }
+ json: { amount: invoiceAmount }
})
.text();