Minor formatting

This commit is contained in:
2022-08-29 16:48:38 +01:00
parent 0127f55401
commit eed97b0298

View File

@@ -742,33 +742,35 @@ export default withRouter(class Progress extends React.Component {
<div className="correct-answers">
{
this.state.currentCorrect && this.state.currentCorrect.length > 0
?
<>
<h2>
{
this.state.moreAnswers
?
?
<>
<h2>
{
this.state.moreAnswers
?
this.state.numberOfAnswers !== null
?
`${this.state.currentCorrect.length} of ${this.state.numberOfAnswers} correct so far:`
:
"Correct so far:"
:
"Answers:"
}
</h2>
"Correct so far:"
:
"Answers:"
}
</h2>
{this.state.currentCorrect.map((vocab, index) =>
{this.state.currentCorrect.map((vocab, index) =>
<p key={index}>{vocab}</p>
)}
</>
:
{this.state.currentCorrect.map((vocab, index) =>
<p key={index}>{vocab}</p>
)}
</>
:
this.state.numberOfAnswers !== null
?
<h2>
{this.state.currentCorrect.length} of {this.state.numberOfAnswers} correct so far
</h2>
:
""
""
}
</div>
</div>