Skip to content

Commit 5deb99d

Browse files
author
Willem (W.F.) Veelenturf
committed
fix: month holidays -> holidayUsed
1 parent 7e565cb commit 5deb99d

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/main/react/features/month/MonthFeature.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ export function MonthFeature() {
5555
.map(it => ({
5656
...it,
5757
missing: Math.max(
58-
it.total - (it.workDays + it.holiDays + it.sickDays + it.event),
58+
it.total - (it.workDays + it.holiDayUsed + it.sickDays + it.event),
5959
0
6060
),
6161
}))
@@ -74,7 +74,12 @@ export function MonthFeature() {
7474
<Tooltip formatter={value => new Intl.NumberFormat().format(value)} />
7575
<Legend />
7676
<Bar stackId="days" dataKey="workDays" name="worked hours" fill="#1de8b5" />
77-
<Bar stackId="days" dataKey="holiDays" name="holiday hours" fill="#42a5f5" />
77+
<Bar
78+
stackId="days"
79+
dataKey="holiDayUsed"
80+
name="holiday hours"
81+
fill="#42a5f5"
82+
/>
7883
<Bar stackId="days" dataKey="sickDays" name="sick hours" fill="#ef5350" />
7984
<Bar stackId="days" dataKey="event" name="event hours" fill="#fed766" />
8085
<Bar stackId="days" dataKey="missing" name="missing hours" fill="#9e9e9e" />

0 commit comments

Comments
 (0)