aboutsummaryrefslogtreecommitdiffstats
path: root/src/routes/(app)/launch/purchase/card
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2023-12-20 15:06:00 -0800
committerAdam Soltys <[email protected]>2023-12-20 15:06:00 -0800
commitb419ccffd45add72259f4abe548ad29b61309488 (patch)
tree42b99083b5c70ca14727a16010fd9caa7562e3bc /src/routes/(app)/launch/purchase/card
parent4cb3b467486456b53c956da95cdc0d17c3e6ff24 (diff)
downloadcoinos-ui-b419ccffd45add72259f4abe548ad29b61309488.tar.gz
coinos-ui-b419ccffd45add72259f4abe548ad29b61309488.zip
prettier
Diffstat (limited to 'src/routes/(app)/launch/purchase/card')
-rw-r--r--src/routes/(app)/launch/purchase/card/+page.server.js3
-rw-r--r--src/routes/(app)/launch/purchase/card/+page.svelte8
2 files changed, 5 insertions, 6 deletions
diff --git a/src/routes/(app)/launch/purchase/card/+page.server.js b/src/routes/(app)/launch/purchase/card/+page.server.js
index 416a66e4..9fb36b71 100644
--- a/src/routes/(app)/launch/purchase/card/+page.server.js
+++ b/src/routes/(app)/launch/purchase/card/+page.server.js
@@ -43,8 +43,7 @@ export const actions = {
method,
}).then((r) => r.json());
- if (status !== "succeeded")
- error(500, { message: "Card payment failed" });
+ if (status !== "succeeded") error(500, { message: "Card payment failed" });
let asset = await createTicket(cookies, form.get("username"));
redirect(307, `/launch/thanks/${asset}`);
diff --git a/src/routes/(app)/launch/purchase/card/+page.svelte b/src/routes/(app)/launch/purchase/card/+page.svelte
index d7ef830d..6d33c87f 100644
--- a/src/routes/(app)/launch/purchase/card/+page.svelte
+++ b/src/routes/(app)/launch/purchase/card/+page.svelte
@@ -48,9 +48,8 @@
CVC/CVV
<span class="relative group">
<span
- class="hidden group-hover:flex justify-center items-center px-2 py-1 text-xs absolute -right-2 transform translate-x-full -translate-y-1/2 w-max top-1/2 bg-black text-white">
-
-
+ class="hidden group-hover:flex justify-center items-center px-2 py-1 text-xs absolute -right-2 transform translate-x-full -translate-y-1/2 w-max top-1/2 bg-black text-white"
+ >
3-digit number on the back of your card</span
>
</span>
@@ -68,7 +67,8 @@
<button
class="bg-black text-white border rounded-full px-8 py-4 font-bold hover:opacity-80 mx-auto text-xl"
type="submit"
- disabled={loading}>
+ disabled={loading}
+ >
{#if loading}
<Spinner />
{:else}