From f884f6a319edff18a2e4ff7b718249a31a64fdf3 Mon Sep 17 00:00:00 2001 From: mama Date: Tue, 1 Aug 2017 16:31:50 +0200 Subject: [PATCH] fixup! :bug: Correction du bouton "Tout effacer" --- source/components/Satisfaction.js | 2 +- source/components/Simulateur.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/source/components/Satisfaction.js b/source/components/Satisfaction.js index f6c586d2f..63f335768 100644 --- a/source/components/Satisfaction.js +++ b/source/components/Satisfaction.js @@ -44,7 +44,7 @@ export default class Satisfaction extends Component { let {answer, message, messageSent} = this.state, validMessage = typeof message == 'string' && message.length > 4, onSmileyClick = s => this.sendSatisfaction(s) -console.log(messageSent) + if (!answer) return (

diff --git a/source/components/Simulateur.js b/source/components/Simulateur.js index e34a4a9e6..5d432475e 100644 --- a/source/components/Simulateur.js +++ b/source/components/Simulateur.js @@ -42,7 +42,7 @@ export default class extends React.Component { } } = this.props, name = decodeRuleName(encodedName), - existingConversation = this.props.unfoldedSteps.length > 0 + existingConversation = this.props.foldedSteps.length > 0 this.encodedName = encodedName this.name = name