From 1609b4fc50f77d3c6c8fc45f88884c4f647beb84 Mon Sep 17 00:00:00 2001 From: Raj Nandan Sharma Date: Sat, 8 Mar 2025 22:56:57 +0530 Subject: [PATCH] refactor: remove unnecessary future and ongoing incident checks from IncidentNew component --- src/lib/components/IncidentNew.svelte | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/lib/components/IncidentNew.svelte b/src/lib/components/IncidentNew.svelte index ff2dbab..16ca5d5 100644 --- a/src/lib/components/IncidentNew.svelte +++ b/src/lib/components/IncidentNew.svelte @@ -31,18 +31,6 @@ incidentTimeStatus = "COMPLETED"; } - let isFuture = false; - let isOngoing = false; - //is future incident - if (nowTime < startTime) { - isFuture = true; - } - - //is ongoing incident - if (nowTime > startTime && nowTime < endTime) { - isOngoing = true; - } - let accordionValue = "incident-0"; if ($page.data.site.incidentGroupView == "COLLAPSED") { accordionValue = "incident-collapse";