aboutsummaryrefslogtreecommitdiffstats
path: root/src/routes/(app)/buy
diff options
context:
space:
mode:
Diffstat (limited to 'src/routes/(app)/buy')
-rw-r--r--src/routes/(app)/buy/+page.server.js2
-rw-r--r--src/routes/(app)/buy/+page.svelte8
2 files changed, 6 insertions, 4 deletions
diff --git a/src/routes/(app)/buy/+page.server.js b/src/routes/(app)/buy/+page.server.js
index 8a88ed4e..fc7ae473 100644
--- a/src/routes/(app)/buy/+page.server.js
+++ b/src/routes/(app)/buy/+page.server.js
@@ -13,7 +13,7 @@ export const actions = {
await post(
'/buy',
{
- amount: form.get('amount'),
+ amount: form.get('amount'),
number: form.get('number').replace(/\s+/g, ''),
month: form.get('expiry').slice(0, 2),
year: form.get('expiry').slice(-2),
diff --git a/src/routes/(app)/buy/+page.svelte b/src/routes/(app)/buy/+page.svelte
index ed803110..323d5ef0 100644
--- a/src/routes/(app)/buy/+page.svelte
+++ b/src/routes/(app)/buy/+page.svelte
@@ -7,7 +7,7 @@
let { username } = data.user;
let loading;
- let amount, n, d, cvc;
+ let amount, n, d, cvc;
</script>
<div class="container px-4 max-w-xl mx-auto mt-10 space-y-5">
@@ -49,8 +49,10 @@
placeholder="&bull;&bull;&bull;"
bind:value={amount}
/>
- <span class="absolute bottom-[9px] left-0 translate-x-1/2 w-6 text-black peer-placeholder-shown:text-gray-300
- ">$</span>
+ <span
+ class="absolute bottom-[9px] left-0 translate-x-1/2 w-6 text-black peer-placeholder-shown:text-gray-300
+ ">$</span
+ >
</label>
<label class="relative w-full flex flex-col">