From b41fe5e89423fa777c10df150387c103f8abe04e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9rgio=20Salgado?= Date: Tue, 4 Jan 2022 20:05:47 +0000 Subject: [PATCH] fix: incorrect useMemo on a function --- .../pages/Dashboard/SystemPerformance/Graphs/RefScatterplot.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/new-lamassu-admin/src/pages/Dashboard/SystemPerformance/Graphs/RefScatterplot.js b/new-lamassu-admin/src/pages/Dashboard/SystemPerformance/Graphs/RefScatterplot.js index f2eb4e78..ef092185 100644 --- a/new-lamassu-admin/src/pages/Dashboard/SystemPerformance/Graphs/RefScatterplot.js +++ b/new-lamassu-admin/src/pages/Dashboard/SystemPerformance/Graphs/RefScatterplot.js @@ -62,7 +62,7 @@ const Graph = ({ data, timeFrame, timezone }) => { [] ) - const filterDay = useMemo( + const filterDay = useCallback( x => (timeFrame === 'day' ? x.getUTCHours() === 0 : x.getUTCDate() === 1), [timeFrame] )