Skip to content

Commit

Permalink
fix: check backup file version first before importing
Browse files Browse the repository at this point in the history
  • Loading branch information
arielsvg committed Sep 8, 2020
1 parent a1727b1 commit 6f798e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/assets/javascripts/directives/views/accountMenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 });
Expand Down

0 comments on commit 6f798e3

Please sign in to comment.