From 151c9d8bc47c977be103fd155e17ed0f184d0822 Mon Sep 17 00:00:00 2001 From: jbstark <33739840+jbstark@users.noreply.github.com> Date: Mon, 22 Jul 2024 18:36:57 -0700 Subject: [PATCH] Apply style suggestions from code review Co-authored-by: Mark McDowall --- frontend/src/Store/Actions/seriesActions.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/frontend/src/Store/Actions/seriesActions.js b/frontend/src/Store/Actions/seriesActions.js index 623552f04..cc0488a05 100644 --- a/frontend/src/Store/Actions/seriesActions.js +++ b/frontend/src/Store/Actions/seriesActions.js @@ -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) {