fix: check backup file version first before importing
This commit is contained in:
@@ -346,7 +346,7 @@ class AccountMenuCtrl extends PureCtrl {
|
|||||||
if (!data) {
|
if (!data) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
const version = data?.auth_params?.version || data?.keyParams?.version;
|
const version = data.version || data.auth_params?.version || data?.keyParams?.version;
|
||||||
if (!protocolManager.supportedVersions().includes(version)) {
|
if (!protocolManager.supportedVersions().includes(version)) {
|
||||||
this.setState({ importData: null });
|
this.setState({ importData: null });
|
||||||
this.alertManager.alert({ text: STRING_IMPORT_FAILED_NEWER_BACKUP });
|
this.alertManager.alert({ text: STRING_IMPORT_FAILED_NEWER_BACKUP });
|
||||||
|
|||||||
Reference in New Issue
Block a user