diff --git a/app/assets/javascripts/directives/views/accountMenu.js b/app/assets/javascripts/directives/views/accountMenu.js index 71915f825..79878f480 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 }); diff --git a/package-lock.json b/package-lock.json index ae96eea2e..9a10aedf7 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "standard-notes-web", - "version": "3.3.6", + "version": "3.3.11", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index f868aa8e3..4223224c7 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "standard-notes-web", - "version": "3.3.10", + "version": "3.3.11", "license": "AGPL-3.0-or-later", "repository": { "type": "git",