aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/Pin.svelte
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2022-10-25 14:12:05 -0700
committerAdam Soltys <[email protected]>2022-10-25 14:12:05 -0700
commit5a5ea3ccc327ff52fb1c313998d90e4bfefea90a (patch)
tree181bea3640a1ff962ddecb8c8de7f413073a56f5 /src/components/Pin.svelte
parentb1f81daaab3b04e8ae0b3e4edd4984aeade8098e (diff)
downloadcoinos-ui-5a5ea3ccc327ff52fb1c313998d90e4bfefea90a.tar.gz
coinos-ui-5a5ea3ccc327ff52fb1c313998d90e4bfefea90a.zip
pin expiry
Diffstat (limited to 'src/components/Pin.svelte')
-rw-r--r--src/components/Pin.svelte13
1 files changed, 3 insertions, 10 deletions
diff --git a/src/components/Pin.svelte b/src/components/Pin.svelte
index 86e78ac1..8f33a7f3 100644
--- a/src/components/Pin.svelte
+++ b/src/components/Pin.svelte
@@ -1,13 +1,11 @@
<script>
- import { tick } from "svelte";
+ import { tick } from 'svelte';
import { pin } from '$lib/store';
import { Pincode, PincodeInput } from 'svelte-pincode';
let pinCode = [];
let pinInput;
- let loading;
-
- $: pinInput && tick().then(pinInput.focusFirstInput);
+ $: pinInput && tick().then(pinInput && pinInput.focusFirstInput);
$: pinCode.length > 5 && ($pin = pinCode.join(''));
</script>
@@ -29,13 +27,8 @@
<button
type="submit"
class="border-2 border-black rounded-xl font-semibold mx-auto py-3 w-40 hover:opacity-80 mx-auto"
- class:bg-black={loading}
>
- {#if loading}
- <Spinner />
- {:else}
- <div class="my-auto">Cancel</div>
- {/if}
+ <div class="my-auto">Cancel</div>
</button>
</div>
</div>