{this.state.currentPrompt}
-+ { + this.state.moreAnswers + ? + "Correct so far:" + : + "Answers:" + } +
+ {this.state.currentCorrect.map((vocab, index) => +{vocab}
+ )} + > + : + "" + } +{this.state.setTitle}
+You got
+{`${(this.state.correct / this.state.totalQuestions * 100).toFixed(2)}%`}
+{`${this.state.correct} of ${this.state.totalQuestions}`}
+marks
+You took
+{this.msToTime(this.state.duration)}
+Attempt #
+{this.state.attemptNumber}
+Incorrect answers:
+Prompt
+Answer
+Mistakes
+- { - this.state.moreAnswers - ? - "Correct so far:" - : - "Answers:" - } -
- {this.state.currentCorrect.map((vocab, index) => -{vocab}
- )} - > - : - "" + Object.keys(this.state.incorrectAnswers).map(key => + [key, this.state.incorrectAnswers[key].count]) + .sort((a,b) => b[1] - a[1]).map(item => +{this.state.incorrectAnswers[item[0]].prompt ? this.state.incorrectAnswers[item[0]].prompt : ""}
+{this.state.incorrectAnswers[item[0]].answer ? this.state.incorrectAnswers[item[0]].answer.join("/") : ""}
+{this.state.incorrectAnswers[item[0]].count}
+{this.state.setTitle}
-You got
-{`${(this.state.correct / this.state.totalQuestions * 100).toFixed(2)}%`}
-{`${this.state.correct} of ${this.state.totalQuestions}`}
-marks
-You took
-{this.msToTime(this.state.duration)}
-Attempt #
-{this.state.attemptNumber}
-Incorrect answers:
-Prompt
-Answer
-Mistakes
-{this.state.incorrectAnswers[item[0]].prompt ? this.state.incorrectAnswers[item[0]].prompt : ""}
-{this.state.incorrectAnswers[item[0]].answer ? this.state.incorrectAnswers[item[0]].answer.join("/") : ""}
-{this.state.incorrectAnswers[item[0]].count}
-History
-History
+{this.state.currentPrompt}
{props.grade.toFixed(2)}
+%
+{props.correct}
+correct
+{props.incorrect}
+mistake{ props.incorrect !== 1 && "s" }
+{props.progress}
+guess{props.progress !== 1 && "es"}
+{props.correct}/{props.totalVocabItems}
+