diff options
| author | Adam Soltys <[email protected]> | 2023-10-16 15:34:26 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2023-10-16 15:34:26 -0700 |
| commit | 829c2efb9c4415c64466988f1e189184ffb88478 (patch) | |
| tree | 23f9e5fd83be3d4ee3943d254e4d3d2ce194819a /src/lib/invoice.js | |
| parent | 16475fffdb0d20a2933cfaf6922afc7c137bb7fe (diff) | |
| parent | 0212fe0032eb0c5d6bfb74ebaab42543b73d6d6b (diff) | |
| download | coinos-ui-829c2efb9c4415c64466988f1e189184ffb88478.tar.gz coinos-ui-829c2efb9c4415c64466988f1e189184ffb88478.zip | |
Merge branch 'master' into swapee
Diffstat (limited to 'src/lib/invoice.js')
| -rw-r--r-- | src/lib/invoice.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/invoice.js b/src/lib/invoice.js index 23ce1757..218972c6 100644 --- a/src/lib/invoice.js +++ b/src/lib/invoice.js @@ -21,16 +21,16 @@ export default async ({ cookies, request, url }) => { let user = { username: form.get('username'), currency: form.get('currency') }; invoice = await post('/invoice', { invoice, user }, auth(cookies)); - let { hash } = invoice; + let { id } = invoice; if (request_id) { if (url.pathname.endsWith('tip')) { - throw redirect(307, `/send/invoice/${hash}`); + throw redirect(307, `/send/invoice/${id}`); } throw redirect(307, `/${user.username}/request/${request_id}`); } - if (invoice.prompt) throw redirect(307, `/${user.username}/invoice/${hash}/tip`); - else throw redirect(307, `/${user.username}/invoice/${hash}`); + if (invoice.prompt) throw redirect(307, `/${user.username}/invoice/${id}/tip`); + else throw redirect(307, `/${user.username}/invoice/${id}`); }; |
