Files
AutistMask/tests/state.test.js
clawbot 27e37b9976
All checks were successful
check / check (push) Successful in 36s
fix: derive hasWallet from the wallet list on load (closes #195)
loadState() took hasWallet straight from storage, so any profile persisted
with the flag out of step with wallets stayed broken on every subsequent
load rather than only until the next write. The flag is now derived from
wallets.length at load time.

The only consumer is the popup's welcome-vs-wallet-list gate in
src/popup/index.js; the only writers set it true alongside an added
wallet. Nothing reads it expecting it to differ from wallets.length, so
deriving is safe and needs no write-back on load.
2026-08-11 12:23:28 +00:00

3.7 KiB