diff --git a/weather_app/app/components/airPollution/AirPollution.tsx b/weather_app/app/components/airPollution/AirPollution.tsx
index f81a410..5bbc2c8 100644
--- a/weather_app/app/components/airPollution/AirPollution.tsx
+++ b/weather_app/app/components/airPollution/AirPollution.tsx
@@ -17,6 +17,7 @@ const AirPollution = () => {
const filterAQI = air_QualityIndex.find((item) => {
return item.rating === airQualityIndex;
})
+ console.log(airQualityIndex)
return (
diff --git a/weather_app/app/components/daily_forcast/DailyForecast.tsx b/weather_app/app/components/daily_forcast/DailyForecast.tsx
index 0df7ec4..73bea68 100644
--- a/weather_app/app/components/daily_forcast/DailyForecast.tsx
+++ b/weather_app/app/components/daily_forcast/DailyForecast.tsx
@@ -9,7 +9,7 @@ import {
CarouselItem,
} from "@/components/ui/carousel"
import moment from 'moment';
-import { kelvinToCelsius } from '@/app/utils/Misc';
+import { kelvinToFarenheit } from '@/app/utils/Misc';
const DailyForcast = () => {
const {forecast, dailyForecast} = useGlobalContext();
@@ -58,7 +58,7 @@ const DailyForcast = () => {
return
{moment(forecast.dt_txt).format("hh:mm")}
{getIcon()}
- {kelvinToCelsius(forecast.main.temp)}°F
+ {kelvinToFarenheit(forecast.main.temp)}°F
})
}
diff --git a/weather_app/app/components/temp/Temperature.tsx b/weather_app/app/components/temp/Temperature.tsx
index c747a3f..416576b 100644
--- a/weather_app/app/components/temp/Temperature.tsx
+++ b/weather_app/app/components/temp/Temperature.tsx
@@ -1,6 +1,6 @@
"use client"
import { useGlobalContext } from '@/app/context/globalContext'
-import { kelvinToCelsius } from '@/app/utils/Misc';
+import { kelvinToFarenheit } from '@/app/utils/Misc';
import { CloudIcon, CloudRainIcon, SnowflakeIcon, SunIcon, Zap } from 'lucide-react';
import { IoNavigateOutline } from "react-icons/io5";
@@ -13,9 +13,9 @@ const Temperature = () => {
if(!forecast || !weather){
return
Loading...
}
- const temp = kelvinToCelsius(main?.temp);
- const minTemp = kelvinToCelsius(main?.temp_min);
- const maxTemp = kelvinToCelsius(main?.temp_max);
+ const temp = kelvinToFarenheit(main?.temp);
+ const minTemp = kelvinToFarenheit(main?.temp_min);
+ const maxTemp = kelvinToFarenheit(main?.temp_max);
//set time, day, weather
const [localTime, setLocalTime] = useState("");
diff --git a/weather_app/app/components/uvIndex/UVI.tsx b/weather_app/app/components/uvIndex/UVI.tsx
index 886c60e..02cb4e0 100644
--- a/weather_app/app/components/uvIndex/UVI.tsx
+++ b/weather_app/app/components/uvIndex/UVI.tsx
@@ -54,11 +54,11 @@ const UVI = () => {
UV Index
{uvIndexMax}
-
({uvIndexScale(uvIndexMax).text})
+
({uvIndexScale(uvIndexMax).text})