diff options
| author | Adam Soltys <[email protected]> | 2023-03-07 14:43:48 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2023-03-07 14:43:48 -0800 |
| commit | 6645434663ace4f613e9ff2a2736bca27229e430 (patch) | |
| tree | b0875ec86ed1471a541cf695821b55db675b47cf /src/lib | |
| parent | 5dd262a8ebd57fd0eca3bd2aaaaebc8185a7d0e0 (diff) | |
| download | coinos-ui-6645434663ace4f613e9ff2a2736bca27229e430.tar.gz coinos-ui-6645434663ace4f613e9ff2a2736bca27229e430.zip | |
static qr
Diffstat (limited to 'src/lib')
| -rw-r--r-- | src/lib/invoice.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/invoice.js b/src/lib/invoice.js index 23ce1757..429efa2b 100644 --- a/src/lib/invoice.js +++ b/src/lib/invoice.js @@ -9,6 +9,8 @@ export default async ({ cookies, request, url }) => { let request_id = form.get('request_id'); if (request_id === 'undefined') request_id = undefined; + console.log("FORM", form.get('prompt')); + let invoice = { amount, tip: parseInt(form.get('tip')) || 0, @@ -31,6 +33,7 @@ export default async ({ cookies, request, url }) => { throw redirect(307, `/${user.username}/request/${request_id}`); } + console.log('PROMPT?', invoice.prompt); if (invoice.prompt) throw redirect(307, `/${user.username}/invoice/${hash}/tip`); else throw redirect(307, `/${user.username}/invoice/${hash}`); }; |
