From c4e09a22826b2666a0e895ae18f1c4d95c279a2a Mon Sep 17 00:00:00 2001 From: Barry Gitarts Date: Thu, 28 Jun 2018 16:40:18 -0400 Subject: [PATCH] ensure new vote get displayed before closing add poll menu is now an easter egg --- app/components/simple-voting/AddPoll.js | 2 +- app/components/standard/AppBar.js | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) 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?