diff --git a/frontend/static/js/common.js b/frontend/static/js/common.js index 4cd2a211..2509069d 100644 --- a/frontend/static/js/common.js +++ b/frontend/static/js/common.js @@ -139,7 +139,7 @@ angular.module("FICApp") $scope.time = {}; $rootScope.getSrvTime = function() { - if (time.cu && time.he) + if (time && time.cu && time.he) return new Date(Date.now() + (time.cu - time.he)); else return undefined;