Skip to content

Commit e444b62

Browse files
committed
convert calculateColor to arrow function
1 parent 20f8883 commit e444b62

File tree

1 file changed

+1
-1
lines changed
  • 5-browser-extension/solution/src

1 file changed

+1
-1
lines changed

5-browser-extension/solution/src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const fossilfuel = document.querySelector('.fossil-fuel');
1414
const myregion = document.querySelector('.my-region');
1515
const clearBtn = document.querySelector('.clear-btn');
1616

17-
calculateColor = async (value) => {
17+
const calculateColor = async (value) => {
1818
let co2Scale = [0, 150, 600, 750, 800];
1919
let colors = ['#2AA364', '#F5EB4D', '#9E4229', '#381D02', '#381D02'];
2020

0 commit comments

Comments
 (0)