v1.0.0/release
finalize update and set logic
This commit is contained in:
@@ -231,7 +231,6 @@ class App extends React.Component {
|
||||
};
|
||||
}
|
||||
componentDidMount() {
|
||||
console.log(VAX_RESULTS);
|
||||
const params = window.location.pathname
|
||||
.toUpperCase()
|
||||
.split("/")
|
||||
@@ -285,8 +284,10 @@ class App extends React.Component {
|
||||
const inputPopupSubmit = document.querySelector(
|
||||
".input-popup-submit"
|
||||
);
|
||||
inputPopupSubmit.classList.add("submitted");
|
||||
inputPopupSubmit.innerHTML = "UPDATE ANSWER";
|
||||
if (inputPopupSubmit) {
|
||||
inputPopupSubmit.classList.add("submitted");
|
||||
inputPopupSubmit.innerHTML = "UPDATE ANSWER";
|
||||
}
|
||||
window.localStorage.setItem("hasExistingAnswer", true);
|
||||
} else {
|
||||
this.setState({ loading: false });
|
||||
|
||||
Reference in New Issue
Block a user