From d9e4607ac4d01de576fba97aef17dbfa2bf22f50 Mon Sep 17 00:00:00 2001 From: syukoGit Date: Mon, 4 Dec 2023 21:16:55 +0100 Subject: [PATCH] fix(client): intervention calculator v1 didn't add 30 minutes for special hour --- FirefighterStats/Client/src/types/InterventionCalculator.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/FirefighterStats/Client/src/types/InterventionCalculator.ts b/FirefighterStats/Client/src/types/InterventionCalculator.ts index 07aefd7..460ed09 100644 --- a/FirefighterStats/Client/src/types/InterventionCalculator.ts +++ b/FirefighterStats/Client/src/types/InterventionCalculator.ts @@ -24,6 +24,10 @@ export const InterventionCalculatorV1: IInterventionCalculator = { dayTimeInMinutes += 30; } + if (specialTimeInMinutes > 0) { + specialTimeInMinutes += 30; + } + const dayTime = Number((dayTimeInMinutes / 60).toFixed(2)); const nightTime = Number((nightTimeInMinutes / 60).toFixed(2)); const specialTime = Number((specialTimeInMinutes / 60).toFixed(2));