From 6f798e3ba9a7f565da022916e8e50546c0fb5cf2 Mon Sep 17 00:00:00 2001 From: Baptiste Grob <60621355+baptiste-grob@users.noreply.github.com> Date: Tue, 8 Sep 2020 18:01:05 +0200 Subject: [PATCH] fix: check backup file version first before importing --- app/assets/javascripts/directives/views/accountMenu.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/directives/views/accountMenu.js b/app/assets/javascripts/directives/views/accountMenu.js index 71915f825eb..79878f480a1 100644 --- a/app/assets/javascripts/directives/views/accountMenu.js +++ b/app/assets/javascripts/directives/views/accountMenu.js @@ -346,7 +346,7 @@ class AccountMenuCtrl extends PureCtrl { if (!data) { 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)) { this.setState({ importData: null }); this.alertManager.alert({ text: STRING_IMPORT_FAILED_NEWER_BACKUP });