Skip to content

Commit

Permalink
fix(client): intervention calculator v1 didn't add 30 minutes for spe…
Browse files Browse the repository at this point in the history
…cial hour
  • Loading branch information
syukoGit committed Dec 4, 2023
1 parent 5e553bd commit d9e4607
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions FirefighterStats/Client/src/types/InterventionCalculator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit d9e4607

Please sign in to comment.