aboutsummaryrefslogtreecommitdiffstats
path: root/src/routes/launch/purchase
diff options
context:
space:
mode:
Diffstat (limited to 'src/routes/launch/purchase')
-rw-r--r--src/routes/launch/purchase/+page.svelte6
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');