Moved normalization to BE

This commit is contained in:
Alex Holliday committed 2024-08-08 11:20:54 -07:00
1 parent 7928bd7822
commit 51058b6d2b
8 files changed
+28 -18

No files matched your search

+1 -1
View File
@@ -145,7 +145,7 @@ const Monitors = () => {
useEffect(() => {
dispatch(getUptimeMonitorsByUserId(authState.authToken));
}, []);
}, [authState.authToken, dispatch]);
const up = monitorState.monitors.reduce((acc, cur) => {
return cur.status === true ? acc + 1 : acc;