Commit b6199d74 authored by Weiser's avatar Weiser
Browse files

sdfg

parent 67fe26a5
...@@ -367,9 +367,10 @@ const Currentdata = (props) => { ...@@ -367,9 +367,10 @@ const Currentdata = (props) => {
} }
if (wind) { if (wind) {
if(units == world){ if(units == world){
filterArray.push("wind_mph"); filterArray.push("wind_kph");
} }else{
filterArray.push("wind_kph"); filterArray.push("wind_mph");
}
} }
if (wind_degree) { if (wind_degree) {
filterArray.push("wind_degree"); filterArray.push("wind_degree");
...@@ -380,14 +381,17 @@ const Currentdata = (props) => { ...@@ -380,14 +381,17 @@ const Currentdata = (props) => {
if (pressure) { if (pressure) {
if(units == world){ if(units == world){
filterArray.push("temp_mb"); filterArray.push("temp_mb");
} }else{
filterArray.push("pressure_in"); filterArray.push("pressure_in");
}
} }
if (precip) {if(units == world){ if (precip) {
if(units == world){
filterArray.push("temp_mm"); filterArray.push("temp_mm");
} }else{
filterArray.push("precip_in"); filterArray.push("precip_in");
} }
}
if (humidity) { if (humidity) {
filterArray.push("humidity"); filterArray.push("humidity");
} }
...@@ -397,32 +401,37 @@ const Currentdata = (props) => { ...@@ -397,32 +401,37 @@ const Currentdata = (props) => {
if (feelslike) { if (feelslike) {
if(units == world){ if(units == world){
filterArray.push("feelslike_c"); filterArray.push("feelslike_c");
} }else{
filterArray.push("feelslike_f"); filterArray.push("feelslike_f");
}
} }
if (windchill) { if (windchill) {
if(units == world){ if(units == world){
filterArray.push("windchill_c"); filterArray.push("windchill_c");
} } else{
filterArray.push("windchill_f"); filterArray.push("windchill_f");
}
} }
if (heatindex) { if (heatindex) {
if(units == world){ if(units == world){
filterArray.push("heatindex_c"); filterArray.push("heatindex_c");
} }else{
filterArray.push("heatindex_f"); filterArray.push("heatindex_f");
}
} }
if (dewpoint) { if (dewpoint) {
if(units == world){ if(units == world){
filterArray.push("dewpoint_c"); filterArray.push("dewpoint_c");
} }else{
filterArray.push("dewpoint_f"); filterArray.push("dewpoint_f");
}
} }
if (vis) { if (vis) {
if(units == world){ if(units == world){
filterArray.push("vis_miles"); filterArray.push("vis_miles");
} }else{
filterArray.push("vis_miles"); filterArray.push("vis_miles");
}
} }
if (uv) { if (uv) {
filterArray.push("uv"); filterArray.push("uv");
...@@ -430,8 +439,9 @@ const Currentdata = (props) => { ...@@ -430,8 +439,9 @@ const Currentdata = (props) => {
if (gust) { if (gust) {
if(units == world){ if(units == world){
filterArray.push("gust_kph"); filterArray.push("gust_kph");
} } else{
filterArray.push("gust_mph"); filterArray.push("gust_mph");
}
} }
if (air_quality_co) { if (air_quality_co) {
filterArray.push("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