convert calculateColor to arrow function

pull/1579/head
OnlineBunker 1 month ago
parent 20f8883618
commit e444b62884

@ -14,7 +14,7 @@ const fossilfuel = document.querySelector('.fossil-fuel');
const myregion = document.querySelector('.my-region');
const clearBtn = document.querySelector('.clear-btn');
calculateColor = async (value) => {
const calculateColor = async (value) => {
let co2Scale = [0, 150, 600, 750, 800];
let colors = ['#2AA364', '#F5EB4D', '#9E4229', '#381D02', '#381D02'];

Loading…
Cancel
Save