Skip to content

Commit 20daae6

Browse files
author
Bot
committed
fix results % completed
1 parent d62e28f commit 20daae6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/views/Results.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
<template v-if="stats.mode !== 2">
4444
<p>Time wasted by mistakes: {{ format(totalTimeLost) }} s</p>
4545
<p>Speed counting down that time {{ format(WPMWithoutTimeLost, 0, 1) }} WPM</p>
46-
<p>Most mistakes in a row: {{ mostMistakesInARow }} mistakes</p>
46+
<p>Most mistakes in a row: {{ mostMistakesInARow }} mistake{{ mostMistakesInARow === 1 ? '' : 's' }}</p>
4747
<p>Longest correction time: {{ format(longestTimeOfCorrection) }} s</p>
4848
</template>
4949
<template v-else>
@@ -132,7 +132,7 @@ export default {
132132
return this.CPM / 5;
133133
},
134134
percentCompleted() {
135-
return this.format(this.correctLines / this.stats.codeInfo.lines, 1, 100);
135+
return this.format(this.stats.correctLines / this.stats.codeInfo.lines, 1, 100);
136136
},
137137
mostMistakesInARow() {
138138
return this.mistakes.map((obj) => obj.fixQueuePos)

0 commit comments

Comments
 (0)