Commit 130df6b6 authored by Weiser's avatar Weiser
Browse files

asdf

parent fcb311bd
......@@ -93,7 +93,7 @@ const Currentdata = (props) => {
<label> Last Updated</label>
<br />
<input type="checkbox" id="temp" className="checkBoxFilter" />
<label for="temp">Temp C</label>
<label for="temp">Temp</label>
<br />
<input type="checkbox" id="id_day" className="checkBoxFilter" />
<label for="id_day">ID Day</label>
......@@ -344,7 +344,7 @@ const Currentdata = (props) => {
filterArray.push("last_updated");
}
if (temp) {
if (units == world) {
if (units == "world") {
filterArray.push("temp_c");
} else{
filterArray.push("temp_f");
......@@ -364,7 +364,7 @@ const Currentdata = (props) => {
filterArray.push("condition_code");
}
if (wind) {
if (units == world) {
if (units == "world") {
filterArray.push("wind_kph");
} else {
filterArray.push("wind_mph");
......@@ -377,14 +377,14 @@ const Currentdata = (props) => {
filterArray.push("wind_dir");
}
if (pressure) {
if (units == world) {
if (units == "world") {
filterArray.push("temp_mb");
} else {
filterArray.push("pressure_in");
}
}
if (precip) {
if (units == world) {
if (units == "world") {
filterArray.push("temp_mm");
} else {
filterArray.push("precip_in");
......@@ -397,35 +397,35 @@ const Currentdata = (props) => {
filterArray.push("cloud");
}
if (feelslike) {
if (units == world) {
if (units == "world") {
filterArray.push("feelslike_c");
} else {
filterArray.push("feelslike_f");
}
}
if (windchill) {
if (units == world) {
if (units == "world") {
filterArray.push("windchill_c");
} else {
filterArray.push("windchill_f");
}
}
if (heatindex) {
if (units == world) {
if (units == "world") {
filterArray.push("heatindex_c");
} else {
filterArray.push("heatindex_f");
}
}
if (dewpoint) {
if (units == world) {
if (units == "world") {
filterArray.push("dewpoint_c");
} else {
filterArray.push("dewpoint_f");
}
}
if (vis) {
if (units == world) {
if (units == "world") {
filterArray.push("vis_miles");
} else {
filterArray.push("vis_miles");
......@@ -435,7 +435,7 @@ const Currentdata = (props) => {
filterArray.push("uv");
}
if (gust) {
if (units == world) {
if (units == "world") {
filterArray.push("gust_kph");
} else {
filterArray.push("gust_mph");
......
......@@ -188,11 +188,6 @@ const WeatherForecastData = (props) => {
<input type="checkbox" id="hour_is_day" class="checkBoxFilter" />
<label for="hour_is_day">Hour Is Day</label>
<br />
<input
type="checkbox"
id="hour_condition_text"
class="checkBoxFilter"
/>
<input type="checkbox" id="hour_wind" class="checkBoxFilter" />
<label for="hour_wind">Hour Wind</label>
<br />
......
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