Apply style suggestions from code review
Co-authored-by: Mark McDowall <markus.mcd5@gmail.com>
This commit is contained in:
parent
69f771ad5e
commit
151c9d8bc4
|
@ -202,15 +202,18 @@ export const filterPredicates = {
|
|||
if (seasonNumber <= 0) {
|
||||
return acc;
|
||||
}
|
||||
|
||||
if (monitored) {
|
||||
acc.monitoredCount++;
|
||||
} else {
|
||||
acc.unmonitoredCount++;
|
||||
}
|
||||
|
||||
return acc;
|
||||
}, { monitoredCount: 0, unmonitoredCount: 0 });
|
||||
|
||||
let seasonsMonitoredStatus = 'partial';
|
||||
|
||||
if (monitoredCount === 0) {
|
||||
seasonsMonitoredStatus = 'none';
|
||||
} else if (unmonitoredCount === 0) {
|
||||
|
|
Loading…
Reference in New Issue