Commit b6199d74 authored by Weiser's avatar Weiser
Browse files

sdfg

parent 67fe26a5
......@@ -367,9 +367,10 @@ const Currentdata = (props) => {
}
if (wind) {
if(units == world){
filterArray.push("wind_kph");
}else{
filterArray.push("wind_mph");
}
filterArray.push("wind_kph");
}
if (wind_degree) {
filterArray.push("wind_degree");
......@@ -380,14 +381,17 @@ const Currentdata = (props) => {
if (pressure) {
if(units == world){
filterArray.push("temp_mb");
}
}else{
filterArray.push("pressure_in");
}
if (precip) {if(units == world){
filterArray.push("temp_mm");
}
if (precip) {
if(units == world){
filterArray.push("temp_mm");
}else{
filterArray.push("precip_in");
}
}
if (humidity) {
filterArray.push("humidity");
}
......@@ -397,42 +401,48 @@ const Currentdata = (props) => {
if (feelslike) {
if(units == world){
filterArray.push("feelslike_c");
}
}else{
filterArray.push("feelslike_f");
}
}
if (windchill) {
if(units == world){
filterArray.push("windchill_c");
}
} else{
filterArray.push("windchill_f");
}
}
if (heatindex) {
if(units == world){
filterArray.push("heatindex_c");
}
}else{
filterArray.push("heatindex_f");
}
}
if (dewpoint) {
if(units == world){
filterArray.push("dewpoint_c");
}
}else{
filterArray.push("dewpoint_f");
}
}
if (vis) {
if(units == world){
filterArray.push("vis_miles");
}
}else{
filterArray.push("vis_miles");
}
}
if (uv) {
filterArray.push("uv");
}
if (gust) {
if(units == world){
filterArray.push("gust_kph");
}
} else{
filterArray.push("gust_mph");
}
}
if (air_quality_co) {
filterArray.push("air_quality_co");
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment