diff --git a/.eslintrc.yml b/.eslintrc.yml index 13fc2b140..ee20324ff 100644 --- a/.eslintrc.yml +++ b/.eslintrc.yml @@ -1,6 +1,6 @@ extends: [eslint:recommended, google, plugin:jasmine/recommended] parserOptions: - ecmaVersion: 2018 + ecmaVersion: 2020 sourceType: "module" plugins: - jasmine @@ -35,4 +35,4 @@ rules: space-in-parens: ["error", "never"] jasmine/no-focused-tests: 0 jasmine/prefer-toHaveBeenCalledWith: 0 - arrow-spacing: ["error", { "before": true, "after": true }] \ No newline at end of file + arrow-spacing: ["error", { "before": true, "after": true }] diff --git a/front/salix/components/login/index.js b/front/salix/components/login/index.js index 554697daf..0412f3b74 100644 --- a/front/salix/components/login/index.js +++ b/front/salix/components/login/index.js @@ -27,8 +27,7 @@ export default class Controller { this.loading = false; this.password = ''; this.focusUser(); - - if (req.data.error.code == 'passExpired') { + if (req?.data?.error?.code == 'passExpired') { const [args] = req.data.error.translateArgs; this.$state.go('change-password', args); }