diff options
| author | Adam Soltys <[email protected]> | 2022-12-24 05:22:50 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2022-12-24 05:22:50 -0800 |
| commit | 10c20c0c5b130c389680e37e4e4aba8e2abdbf1e (patch) | |
| tree | 6862c7f94c899b3dad177b16698c08abc678eefb /src/components/Pin.svelte | |
| parent | e1a34bbc86600c6dfb782ac936030379deb6365a (diff) | |
| download | coinos-ui-10c20c0c5b130c389680e37e4e4aba8e2abdbf1e.tar.gz coinos-ui-10c20c0c5b130c389680e37e4e4aba8e2abdbf1e.zip | |
password prompt and pin fixes
Diffstat (limited to 'src/components/Pin.svelte')
| -rw-r--r-- | src/components/Pin.svelte | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/components/Pin.svelte b/src/components/Pin.svelte index 80e003b9..9b1bb4ea 100644 --- a/src/components/Pin.svelte +++ b/src/components/Pin.svelte @@ -4,6 +4,8 @@ let pinCode = ''; let pinInput; + let cancel = () => ($pin = '000000'); + $: pinCode.length > 5 && ($pin = pinCode); </script> @@ -15,6 +17,7 @@ <button type="submit" class="border-2 border-black rounded-xl font-semibold mx-auto py-3 w-40 hover:opacity-80 mx-auto" + on:click={cancel} > <div class="my-auto">Cancel</div> </button> |
