From 89bc40fe6d1561a8a475c6dcb923fdafe242214b Mon Sep 17 00:00:00 2001 From: Sivasish Praharaj <98220976+Sivasish48@users.noreply.github.com> Date: Tue, 13 Jun 2023 18:51:43 +0530 Subject: [PATCH] Update index.js Declaration of the regionName by replacing the declaration of the region. --- 5-browser-extension/solution/src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/5-browser-extension/solution/src/index.js b/5-browser-extension/solution/src/index.js index e1ea391a..39ad5a93 100644 --- a/5-browser-extension/solution/src/index.js +++ b/5-browser-extension/solution/src/index.js @@ -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', {