diff options
| author | secondl1ght <[email protected]> | 2022-07-27 00:00:43 -0600 |
|---|---|---|
| committer | secondl1ght <[email protected]> | 2022-07-27 00:00:43 -0600 |
| commit | c8604d2b1a8a1ba1687ba18865c854518df0facd (patch) | |
| tree | 33286e6e402fd428bd51ff7603957bd7f2295de7 /src/routes/invoice.js | |
| parent | e78798d8ea6b8d27206e7e3501310ec4df9714ca (diff) | |
| download | coinos-ui-c8604d2b1a8a1ba1687ba18865c854518df0facd.tar.gz coinos-ui-c8604d2b1a8a1ba1687ba18865c854518df0facd.zip | |
hook up receive page and more adjustments
Diffstat (limited to 'src/routes/invoice.js')
| -rw-r--r-- | src/routes/invoice.js | 3 |
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(); |
