Change layout of stats on test completion

This commit is contained in:
2021-09-11 22:22:55 +01:00
parent d5c48c7acc
commit 7f5ae50e22

View File

@@ -503,6 +503,7 @@ export default withRouter(class Progress extends React.Component {
<main>
{/* DONE */}
<h1>{this.state.setTitle}</h1>
<div className="progress-stat-row-container">
<div className="stat-row stat-row--inline">
<p>You got</p>
<h1>{`${(this.state.correct / this.state.totalQuestions * 100).toFixed(2)}%`}</h1>
@@ -519,6 +520,7 @@ export default withRouter(class Progress extends React.Component {
<p>Attempt #</p>
<h1>{this.state.attemptNumber}</h1>
</div>
</div>
{
this.state.incorrectAnswers && Object.keys(this.state.incorrectAnswers).length > 0 &&
<>