diff options
| author | Adam Soltys <[email protected]> | 2023-02-15 22:47:48 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2023-02-15 22:47:48 -0800 |
| commit | 933495c2e42a59dc309131affc6ee4ef0ec2f567 (patch) | |
| tree | 89ceb0d55ff56cdccc2e49ff262fd1be41e5c2d5 /src/routes/(app)/buy | |
| parent | 808d5706bf59636deb49011a00ea0f4846ea7592 (diff) | |
| download | coinos-ui-933495c2e42a59dc309131affc6ee4ef0ec2f567.tar.gz coinos-ui-933495c2e42a59dc309131affc6ee4ef0ec2f567.zip | |
prettier
Diffstat (limited to 'src/routes/(app)/buy')
| -rw-r--r-- | src/routes/(app)/buy/+page.server.js | 2 | ||||
| -rw-r--r-- | src/routes/(app)/buy/+page.svelte | 8 |
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="•••" 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"> |
