Skip to content

Commit

Permalink
fix(50): wrong continent color bars
Browse files Browse the repository at this point in the history
  • Loading branch information
thecreazy committed Feb 18, 2024
1 parent 0efd308 commit b1ba439
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/day/50/utils/getParsedData.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export const vs1990 = {
data: continentData.map(
(el) => ((el['2021'] - el['1990']) / el['2021']) * 100
),
backgroundColor: rawValues.map((el) => {
backgroundColor: continentData.map((el) => {
const value = ((el['2021'] - el['1990']) / el['2021']) * 100;
return value > 0 ? '#3a5a40' : '#bc4749';
}),
Expand Down

0 comments on commit b1ba439

Please sign in to comment.