Skip to content

Commit 91b1fcd

Browse files
Fix flipped team graph colors
1 parent 96b052b commit 91b1fcd

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

client/src/components/sidebar/game/quick-line-chart.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,14 +46,14 @@ export const QuickLineChart: React.FC<LineChartProps> = ({
4646
if (data.length > 0) {
4747
context.strokeStyle = currentColors[Colors.TEAM_ONE]
4848
context.beginPath()
49-
context.moveTo(xScale(data[0].round), yScale(data[0].brown))
50-
for (let i = 1; i < data.length; i++) context.lineTo(xScale(data[i].round), yScale(data[i].brown))
49+
context.moveTo(xScale(data[0].round), yScale(data[0].white))
50+
for (let i = 1; i < data.length; i++) context.lineTo(xScale(data[i].round), yScale(data[i].white))
5151
context.stroke()
5252

5353
context.strokeStyle = currentColors[Colors.TEAM_TWO]
5454
context.beginPath()
55-
context.moveTo(xScale(data[0].round), yScale(data[0].white))
56-
for (let i = 1; i < data.length; i++) context.lineTo(xScale(data[i].round), yScale(data[i].white))
55+
context.moveTo(xScale(data[0].round), yScale(data[0].brown))
56+
for (let i = 1; i < data.length; i++) context.lineTo(xScale(data[i].round), yScale(data[i].brown))
5757
context.stroke()
5858
}
5959

0 commit comments

Comments
 (0)