From 9074fc9aa309e74fb301a3f77197c2c5a4d39cab Mon Sep 17 00:00:00 2001 From: ayshiff Date: Wed, 6 Jun 2018 09:11:51 +0200 Subject: [PATCH 1/2] Update width / height sticker --- client/src/components/App.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/components/App.js b/client/src/components/App.js index 891a955..b04c0ec 100644 --- a/client/src/components/App.js +++ b/client/src/components/App.js @@ -141,7 +141,7 @@ class App extends Component {

{this.state.currentQuestion}

- +

Je fais quoi ?

{this.state.currentResponses ? currentOptions : null} From b5c2517f6cccb38a556aa78d85e09bd4363b6fac Mon Sep 17 00:00:00 2001 From: ayshiff Date: Wed, 6 Jun 2018 09:31:05 +0200 Subject: [PATCH 2/2] Update modal open condition --- client/src/components/App.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/client/src/components/App.js b/client/src/components/App.js index b04c0ec..940d29b 100644 --- a/client/src/components/App.js +++ b/client/src/components/App.js @@ -43,7 +43,9 @@ class App extends Component { closeModal() { this.setState({ + pastQuestion: null, modalIsOpen: false, + pastResponse: null, start: true, score: 0 }); @@ -56,8 +58,7 @@ class App extends Component { } _handleClick(element) { - console.log(element.child +" "+this.state.currentQuestion); - if(element.child !== this.state.currentQuestion || element.child !== null || element.child !== undefined) { + if(element.child !== element.question) { this.setState({ pastQuestion: this.state.currentQuestion , pastResponse: element.text,