diff --git a/services/static-webserver/client/source/class/osparc/MaintenanceTracker.js b/services/static-webserver/client/source/class/osparc/MaintenanceTracker.js index 177f5789d28..64a14dd4a0e 100644 --- a/services/static-webserver/client/source/class/osparc/MaintenanceTracker.js +++ b/services/static-webserver/client/source/class/osparc/MaintenanceTracker.js @@ -95,6 +95,12 @@ qx.Class.define("osparc.MaintenanceTracker", { }, __setMaintenance: function(maintenanceData) { + // ignore old maintenance + if (new Date(maintenanceData.end).getTime() < new Date().getTime()) { + console.warn(`Old maintenance "${maintenanceData.reason}" wasn't removed"`); + return; + } + const oldStart = this.getStart(); const oldEnd = this.getEnd(); const oldReason = this.getReason();