diff --git a/assets/js/currency_exchange.js b/assets/js/currency_exchange.js index 5dc919d..bca1fc3 100644 --- a/assets/js/currency_exchange.js +++ b/assets/js/currency_exchange.js @@ -296,7 +296,8 @@ async function initializeCurrencyExchange() { createUserCurrencySelector(); // Creating a currency selector const params = new URLSearchParams(window.location.search); - const city = params.get('city'); + let city = params.get('city'); + city = city.charAt(0).toUpperCase() + city.slice(1); if (!city) return; const countryName = await getCountryNameFromWeatherAPI(city);