aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/Pin.svelte
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/Pin.svelte')
-rw-r--r--src/components/Pin.svelte3
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>