Commit 16d36bc8 authored by Weiser's avatar Weiser
Browse files

asdf

parent 3c0e9b8d
......@@ -76,11 +76,8 @@ const Currentdata = (props) => {
/>
<label> Last Updated</label>
<br />
<input type="checkbox" id="temp_c" className="checkBoxFilter" />
<label for="temp_c">Temp C</label>
<br />
<input type="checkbox" id="temp_f" className="checkBoxFilter" />
<label for="temp_f">Temp F</label>
<input type="checkbox" id="temp" className="checkBoxFilter" />
<label for="temp">Temp C</label>
<br />
<input type="checkbox" id="id_day" className="checkBoxFilter" />
<label for="id_day">ID Day</label>
......@@ -264,8 +261,7 @@ const Currentdata = (props) => {
const last_updated_epoch =
document.getElementById("last_updated_epoch").checked;
const last_updated = document.getElementById("last_updated").checked;
const temp_c = document.getElementById("temp_c").checked;
const temp_f = document.getElementById("temp_f").checked;
const temp_c = document.getElementById("temp").checked;
const id_day = document.getElementById("id_day").checked;
const condition_text = document.getElementById("condition_text").checked;
const condition_icon = document.getElementById("condition_icon").checked;
......@@ -331,11 +327,8 @@ const Currentdata = (props) => {
if (last_updated) {
filterArray.push("last_updated");
}
if (temp_c) {
filterArray.push("temp_c");
}
if (temp_f) {
filterArray.push("temp_f");
if (temp) {
filterArray.push("temp");
}
if (id_day) {
filterArray.push("id_day");
......
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