diff --git a/source/components/conversation/Conversation.js b/source/components/conversation/Conversation.js index 1818956df..f7667c5ad 100644 --- a/source/components/conversation/Conversation.js +++ b/source/components/conversation/Conversation.js @@ -11,7 +11,8 @@ import Scroll from 'react-scroll' }) export default class Conversation extends Component { render() { - let {foldedSteps, unfoldedSteps, extraSteps, reinitalise, situation, situationGate, textColourOnWhite} = this.props + let {foldedSteps, unfoldedSteps, extraSteps, reinitalise, situation, situationGate, textColourOnWhite} = this.props, + currentQuestion = R.head(unfoldedSteps) ? R.head(unfoldedSteps) : null Scroll.animateScroll.scrollToBottom() return ( @@ -56,8 +57,8 @@ export default class Conversation extends Component { }
- { !R.isEmpty(unfoldedSteps) && do { - let step = R.head(unfoldedSteps) + { currentQuestion && do { + let step = currentQuestion ; }}
- {R.isEmpty(unfoldedSteps) && + {!currentQuestion && }