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/routes/(app)/send | |
| 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/routes/(app)/send')
| -rw-r--r-- | src/routes/(app)/send/invoice/[id]/+page.svelte | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/src/routes/(app)/send/invoice/[id]/+page.svelte b/src/routes/(app)/send/invoice/[id]/+page.svelte index 554eef6f..a558895c 100644 --- a/src/routes/(app)/send/invoice/[id]/+page.svelte +++ b/src/routes/(app)/send/invoice/[id]/+page.svelte @@ -28,12 +28,13 @@ let submit = () => (loading = true); let external = async () => { - let invoice = { type: 'lightning', amount }; - let { hash } = await post(`/${recipient.username}/invoice`, { - invoice + let invoice = { type: 'lightning', amount, currency }; + let { id } = await post(`/${recipient.username}/invoice`, { + invoice, + user: { username: recipient.username } }); - goto(`/${recipient.username}/invoice/${hash}`, { invalidateAll: true }); + goto(`/${recipient.username}/invoice/${id}?options=true`, { invalidateAll: true }); }; $: rate = data.rate * (rates[user.currency] / rates[data.currency]); @@ -139,7 +140,7 @@ {/if} </div> </form> - <div class="flex my-20"> - <button class="mx-auto" on:click={external}>{$t('payments.moreOptions')}</button> - </div> + <div class="flex my-20"> + <button class="mx-auto" on:click={external}>{$t('payments.moreOptions')}</button> + </div> </div> |
