mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2025-03-10 05:39:19 +01:00
Fix incorrectly set useEffect dependency in two files
This commit is contained in:
parent
4c53a9a406
commit
bfe59008d0
@ -32,8 +32,8 @@ const PlayerPingGraph = ({data}) => {
|
||||
data: data.min_ping_series,
|
||||
color: nightModeEnabled ? withReducedSaturation(data.colors.min) : data.colors.min
|
||||
}
|
||||
setSeries([avgPingSeries, maxPingSeries, minPingSeries, nightModeEnabled]);
|
||||
}, [data, t])
|
||||
setSeries([avgPingSeries, maxPingSeries, minPingSeries]);
|
||||
}, [data, t, nightModeEnabled])
|
||||
|
||||
return (
|
||||
<LineGraph id="ping-graph" series={series}/>
|
||||
|
@ -25,8 +25,8 @@ const TimeByTimeGraph = ({data}) => {
|
||||
data: data.newPlayers,
|
||||
color: nightModeEnabled ? withReducedSaturation(data.colors.newPlayers) : data.colors.newPlayers
|
||||
};
|
||||
setSeries([uniquePlayers, newPlayers, nightModeEnabled]);
|
||||
}, [data, t])
|
||||
setSeries([uniquePlayers, newPlayers]);
|
||||
}, [data, t, nightModeEnabled])
|
||||
|
||||
return (
|
||||
<LineGraph id="day-by-day-graph" series={series}/>
|
||||
|
Loading…
Reference in New Issue
Block a user