fix: useEffect dependencies

This commit is contained in:
Sérgio Salgado 2021-04-30 16:40:47 +01:00 committed by Josh Harvey
parent b24c65e8bc
commit cf6e5354ec

View file

@ -197,7 +197,7 @@ const RefScatterplot = ({ data: realData, timeFrame, timezone }) => {
.style('fill', neon)
/* ************************** */
}, [cashIns, cashOuts, realData, timeFrame])
}, [cashIns, cashOuts, realData, timeFrame, timezone])
useEffect(() => {
// first we clear old chart DOM elements on component update