diff options
| author | Adam Soltys <[email protected]> | 2022-09-26 21:28:04 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2022-09-26 21:28:04 -0700 |
| commit | adf27ffe9f7ab061b72c6cc54ca49213aa5d27fe (patch) | |
| tree | 8fcbfd0c141894c8d9d5a9ff86bebc9355c58052 /src/routes/launch/purchase | |
| parent | 7881ecd6a4fcbb820ee1607f1e7f6fcc3ce15dfe (diff) | |
| download | coinos-ui-adf27ffe9f7ab061b72c6cc54ca49213aa5d27fe.tar.gz coinos-ui-adf27ffe9f7ab061b72c6cc54ca49213aa5d27fe.zip | |
invoice updates
Diffstat (limited to 'src/routes/launch/purchase')
| -rw-r--r-- | src/routes/launch/purchase/+page.svelte | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/routes/launch/purchase/+page.svelte b/src/routes/launch/purchase/+page.svelte index 4225101e..84f960e3 100644 --- a/src/routes/launch/purchase/+page.svelte +++ b/src/routes/launch/purchase/+page.svelte @@ -1,6 +1,8 @@ <script> import { selectedRate } from '$lib/store'; import { post } from '$lib/utils'; + import { goto } from '$app/navigation'; + export let data; let amount = 35000; @@ -11,12 +13,14 @@ let invoice; let get = async (network) => { - invoice = await post('/invoice', { + let { uuid } = await post('/invoice', { amount, rate: $selectedRate, network, username }); + + goto(`/invoice/${uuid}`); }; let lightning = () => get('lightning'); |
