From 60e09a3f86c77aa2f2db5eaf22ac0246a0000ab3 Mon Sep 17 00:00:00 2001 From: Matthew Grove Date: Sun, 3 Oct 2021 19:28:37 +0100 Subject: [PATCH] Change order of stats when test completed --- src/Progress.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Progress.js b/src/Progress.js index 8434ec6..5fc976b 100644 --- a/src/Progress.js +++ b/src/Progress.js @@ -585,6 +585,10 @@ export default withRouter(class Progress extends React.Component {

You got

{`${(this.state.correct / this.state.totalQuestions * 100).toFixed(2)}%`}

+
+

{`${this.state.correct} of ${this.state.totalQuestions}`}

+

marks

+
{ this.state.averagePercentage !== null &&
@@ -592,10 +596,6 @@ export default withRouter(class Progress extends React.Component {

{`${this.state.averagePercentage}%`}

} -
-

{`${this.state.correct} of ${this.state.totalQuestions}`}

-

marks

-

You took

{this.msToTime(this.state.duration)}