mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-24 09:46:36 +00:00
Onboarding restore use error code (#24172)
Use error code for incorrect password
This commit is contained in:
parent
dbd1e928de
commit
23a9ae6835
@ -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 =
|
||||
|
Loading…
x
Reference in New Issue
Block a user