diff options
| author | Adam Soltys <[email protected]> | 2023-01-25 23:01:55 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2023-01-25 23:01:55 -0800 |
| commit | 06d21d381123f5da01bc92aaff7c185f62e754ca (patch) | |
| tree | 071975ffa4c30f81a7a25b78b4cfd5f85fdf7ea5 /src/lib/invoice.js | |
| parent | d5b26e787a0c4c1b0a757f58b537f0a890cb9133 (diff) | |
| download | coinos-ui-06d21d381123f5da01bc92aaff7c185f62e754ca.tar.gz coinos-ui-06d21d381123f5da01bc92aaff7c185f62e754ca.zip | |
sveltekit 1.0
Diffstat (limited to 'src/lib/invoice.js')
| -rw-r--r-- | src/lib/invoice.js | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/lib/invoice.js b/src/lib/invoice.js index f0c5aad5..983cde2a 100644 --- a/src/lib/invoice.js +++ b/src/lib/invoice.js @@ -29,9 +29,6 @@ export default async ({ cookies, request, url }) => { throw redirect(307, `/${user.username}/request/${request_id}`); } - if (invoice.prompt) { - throw redirect(307, `/invoice/${hash}/tip`); - } else { - throw redirect(307, `/invoice/${hash}`); - } + if (invoice.prompt) throw redirect(307, `/invoice/${hash}/tip`); + else throw redirect(307, `/invoice/${hash}`); }; |
