diff --git a/.eslintrc.json b/.eslintrc.json index c2d6f1d..79e092a 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -1,6 +1,6 @@ { "parserOptions": { - "ecmaVersion": 2018, + "ecmaVersion": 2020, "sourceType": "module", "ecmaFeatures": { "jsx": true @@ -11,9 +11,18 @@ ], "rules": { "semi": "error", - "quotes": ["error", "single"], - "jsx-quotes": ["error", "prefer-single"], - "arrow-body-style": ["error", "as-needed"], + "quotes": [ + "error", + "single" + ], + "jsx-quotes": [ + "error", + "prefer-single" + ], + "arrow-body-style": [ + "error", + "as-needed" + ], "indent": [ "error", 2, diff --git a/src/app-bundles/auth-bundle.js b/src/app-bundles/auth-bundle.js index e4b5394..662db41 100644 --- a/src/app-bundles/auth-bundle.js +++ b/src/app-bundles/auth-bundle.js @@ -172,7 +172,7 @@ export default { selectAuthData: state => state.auth.authData, - selectUserRole: state => state.auth.authData.role, + selectUserRole: state => state.auth?.authData?.role, selectInitOptions: state => state.auth.initOptions,