Fixed key props

This commit is contained in:
Daniel Cojocea committed 2024-09-04 21:59:16 -04:00
1 parent f689b304c8
commit 25c08ad9a4
1 file changed
+2 -2
@@ -98,7 +98,7 @@ export const UpBarChart = ({ data, type, onBarHover }) => {
let { main, light } = getColorRange(entry.uptimePercentage);
return (
<Cell
key={`cell-${index}`}
key={`cell-${entry.time}`}
fill={
hoveredBarIndex === index ? main : chartHovered ? light : main
}
@@ -171,7 +171,7 @@ export const DownBarChart = ({ data, type, onBarHover }) => {
>
{reversedData.map((entry, index) => (
<Cell
key={`cell-${index}`}
key={`cell-${entry.time}`}
fill={
hoveredBarIndex === index
? theme.palette.error.text