fix: use wallet.encryptedSecret not wallet.encrypted for password verify
All checks were successful
check / check (push) Successful in 22s

This commit is contained in:
2026-02-27 13:52:08 -08:00
parent 107c243f65
commit 2b0b889b01

View File

@@ -283,7 +283,7 @@ function init(ctx) {
// Verify password against the wallet's encrypted data
try {
await decryptWithPassword(wallet.encrypted, pw);
await decryptWithPassword(wallet.encryptedSecret, pw);
} catch (_e) {
showFlash("Wrong password.");
return;