From 41f815f54db7e70f51c97cc31c6c2b7f9963bf7d Mon Sep 17 00:00:00 2001 From: Pierre-Olivier Mercier Date: Fri, 18 Jan 2019 14:44:56 +0100 Subject: [PATCH] frontend: fix undefined variable --- frontend/static/js/common.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;