diff --git a/app/components/simple-voting/AddPoll.js b/app/components/simple-voting/AddPoll.js index 00838b4..d830dda 100644 --- a/app/components/simple-voting/AddPoll.js +++ b/app/components/simple-voting/AddPoll.js @@ -104,9 +104,9 @@ const AddPoll = withFormik({ }) .then(res => { console.log('sucess:', res); + props.getPolls(); setSubmitting(false); props.togglePoll(); - props.getPolls(); }) .catch(res => { console.log('fail:', res); diff --git a/app/components/standard/AppBar.js b/app/components/standard/AppBar.js index 2f6715a..abc7312 100644 --- a/app/components/standard/AppBar.js +++ b/app/components/standard/AppBar.js @@ -33,9 +33,7 @@ function ButtonAppBar(props) {
- - - + What should we build next?