Skip to content

Commit f6f9ea7

Browse files
author
Diane LAKESTANI
committed
fix(outages): getDayClass
1 parent 8704bec commit f6f9ea7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

frontend/src/components/Index/GroupServiceFailures.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,11 +144,11 @@ export default {
144144
// Otherwise, it returns 'day-error' if there are failures, or 'day-success' if not.
145145
getDayClass(dayData) {
146146
// No data points for day
147-
if (data.amount === 0 && data.hits === 0) {
147+
if (dayData.amount === 0 && data.hits === 0) {
148148
return 'day-no-data';
149149
}
150150
// No failures for day
151-
else if (data.amount === 0 && data.hits > 0) {
151+
else if (dayData.amount === 0 && data.hits > 0) {
152152
return 'day-success';
153153
}
154154
// Some failures for the day

0 commit comments

Comments
 (0)