Onboarding restore use error code (#24172)

Use error code for incorrect password
This commit is contained in:
Wendelin 2025-02-11 09:47:18 +01:00 committed by GitHub
parent dbd1e928de
commit 23a9ae6835
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -135,7 +135,7 @@ class OnboardingRestoreBackupRestore extends LitElement {
}
button.actionError();
if (err.body?.message === "incorrect_password") {
if (err.body?.code === "incorrect_password") {
this._encryptionKeyWrong = true;
} else {
this._error =