From 492168acdf4d8c11730d6e62827352dd93741c98 Mon Sep 17 00:00:00 2001 From: Sami Siren Date: Tue, 12 Apr 2022 11:01:37 +0300 Subject: [PATCH] fix eventsPerWeek got multiplied --- admin-ui/src/component/applications/util.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/admin-ui/src/component/applications/util.ts b/admin-ui/src/component/applications/util.ts index 5be343b95c..d2430c2e6d 100644 --- a/admin-ui/src/component/applications/util.ts +++ b/admin-ui/src/component/applications/util.ts @@ -96,8 +96,7 @@ export const appEventHours = ( ): number => { const turns = numTurns(startDate, endDate, biWeekly, eventsPerWeek); - const hours = - (turns * eventsPerWeek * apiDurationToMinutes(minDuration)) / 60; + const hours = (turns * apiDurationToMinutes(minDuration)) / 60; return hours; };