diff options
| author | Adam Soltys <[email protected]> | 2023-02-23 14:54:01 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2023-02-23 14:54:01 -0800 |
| commit | d024ac0a4f585c153c081f202eebea7c3dde3c5b (patch) | |
| tree | c2aa99cdb3d2f554f5ff775efb45360d5bc66c24 /src | |
| parent | e4d9ca78ef21d142c38178c2b1ed5198fd3f7c29 (diff) | |
| download | coinos-ui-d024ac0a4f585c153c081f202eebea7c3dde3c5b.tar.gz coinos-ui-d024ac0a4f585c153c081f202eebea7c3dde3c5b.zip | |
remove invoice confirmation
Diffstat (limited to 'src')
| -rw-r--r-- | src/routes/(app)/send/invoice/[id]/+page.server.js | 5 | ||||
| -rw-r--r-- | src/routes/(app)/send/invoice/[id]/+page.svelte | 1 |
2 files changed, 0 insertions, 6 deletions
diff --git a/src/routes/(app)/send/invoice/[id]/+page.server.js b/src/routes/(app)/send/invoice/[id]/+page.server.js index 0ae097af..dc0d3a3d 100644 --- a/src/routes/(app)/send/invoice/[id]/+page.server.js +++ b/src/routes/(app)/send/invoice/[id]/+page.server.js @@ -14,14 +14,9 @@ export const actions = { default: async ({ cookies, params: { hash }, request }) => { try { let body = await fd(request); - let { confirmed } = body; body.amount = parseInt(body.amount); body.hash = hash; - if (!confirmed) { - return fail(400, { amount, confirm: true }); - } - await post('/payments', body, auth(cookies)); } catch (e) { return fail(400, { message: e.message }); diff --git a/src/routes/(app)/send/invoice/[id]/+page.svelte b/src/routes/(app)/send/invoice/[id]/+page.svelte index 27837bca..7570a61a 100644 --- a/src/routes/(app)/send/invoice/[id]/+page.svelte +++ b/src/routes/(app)/send/invoice/[id]/+page.svelte @@ -69,7 +69,6 @@ <input name="amount" value={amount} type="hidden" /> <input name="payreq" value={payreq} type="hidden" /> <input name="username" value={recipient.username} type="hidden" /> - <input name="confirmed" value={form?.confirm} type="hidden" /> <input name="pin" value={$pin} type="hidden" /> <div class="flex w-full"> |
