Update index.js

Declaration of the regionName by replacing the declaration of the region.
pull/1139/head
Sivasish Praharaj 2 years ago committed by GitHub
parent 207136a537
commit 89bc40fe6d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -31,7 +31,7 @@ calculateColor = async (value) => {
chrome.runtime.sendMessage({ action: 'updateIcon', value: { color: closestColor } });
};
const displayCarbonUsage = async (apiKey, region) => {
const displayCarbonUsage = async (apiKey, regionName) => {
try {
await axios
.get('https://api.co2signal.com/v1/latest', {

Loading…
Cancel
Save