diff --git a/awx/ui/client/src/login/authenticationServices/timer.factory.js b/awx/ui/client/src/login/authenticationServices/timer.factory.js index 54ebf99006..13ead3af02 100644 --- a/awx/ui/client/src/login/authenticationServices/timer.factory.js +++ b/awx/ui/client/src/login/authenticationServices/timer.factory.js @@ -32,7 +32,13 @@ export default timeout: null, getSessionTime: function () { - return Store('sessionTime_'+$rootScope.current_user.id); + if(Store('sessionTime_'+$rootScope.current_user.id)){ + return Store('sessionTime_'+$rootScope.current_user.id); + } + else { + return 0; + } + }, isExpired: function (increase) {