Skip to content

Commit

Permalink
Update overtime level math
Browse files Browse the repository at this point in the history
  • Loading branch information
ba1uev committed Aug 29, 2024
1 parent 8036e38 commit 86b105d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/modules/working-hours/shared-helpers/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,11 @@ export function calculateOverwork(
const overtimeNotice =
config.weeklyWorkingHours + config.weeklyOvertimeHoursNotice
const level =
hours > overtimeWarning
hours >= overtimeWarning
? 'red'
: hours > overtimeNotice
: hours >= overtimeNotice
? 'yellow'
: hours > config.weeklyWorkingHours
: hours >= config.weeklyWorkingHours
? 'gray'
: null
const time = workingTime
Expand Down

0 comments on commit 86b105d

Please sign in to comment.