diff --git a/src/Web/wwwroot/app/apiInterceptor.js b/src/Web/wwwroot/app/apiInterceptor.js index 5040b83ea6..573f58199c 100644 --- a/src/Web/wwwroot/app/apiInterceptor.js +++ b/src/Web/wwwroot/app/apiInterceptor.js @@ -7,7 +7,7 @@ angular return config; }, response: function (response) { - if (response.status === 401 || response.status == 403) { + if (response.status === 401 || response.status === 403) { $injector.get('authService').logOut(); $injector.get('$state').go('frontend.login.info').then(function () { toastr.warning('Your login session has expired.', 'Logged out'); @@ -17,7 +17,7 @@ angular return response || $q.when(response); }, responseError: function (rejection) { - if (rejection.status === 401 || rejection.status == 403) { + if (rejection.status === 401 || rejection.status === 403) { $injector.get('authService').logOut(); $injector.get('$state').go('frontend.login.info').then(function () { toastr.warning('Your login session has expired.', 'Logged out'); diff --git a/src/Web/wwwroot/app/services/validationService.js b/src/Web/wwwroot/app/services/validationService.js index a724f5ebec..1015c98fd2 100644 --- a/src/Web/wwwroot/app/services/validationService.js +++ b/src/Web/wwwroot/app/services/validationService.js @@ -43,7 +43,7 @@ var pushError = true; for (var i = 0; i < form.$errors.length; i++) { - if (form.$errors[i] == errorMessage) { + if (form.$errors[i] === errorMessage) { pushError = false; break; }