string length

This commit is contained in:
Seth Trowbridge 2026-03-10 16:36:59 -04:00
parent dcf77988c6
commit 66abcc0d43

2
app.js
View File

@ -45,7 +45,7 @@ const vault = van.state(/**@type{CredSet[]}*/([]));
const vaultSerialized = van.state(""); const vaultSerialized = van.state("");
let attempts = 0; let attempts = 0;
const preexisting = van.state(localStorage.getItem(writeKey).length>1 ? true : false); const preexisting = van.state((localStorage.getItem(writeKey)||"").length>2 ? true : false);
const accessError = van.state(false); const accessError = van.state(false);