Commit 8db8b528 authored by Franca's avatar Franca
Browse files

fix: clear timer on correct input


Co-authored-by: satan's avatarSebastian Speitel <sebastian.speitel@outlook.de>
parent bb9baa63
......@@ -78,6 +78,10 @@ async function checkPin(pin: string) {
if (equals(hash, unref(correctHash))) {
correct.value = true;
state.value = "correct";
if (resetTimeout) {
window.clearTimeout(resetTimeout);
}
} else {
correct.value = false;
state.value = "incorrect";
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment