File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -114,7 +114,7 @@ export default {
114114 return this .stats .history ;
115115 },
116116 mistakes () {
117- return this .history .filter ((change ) => change .type === ' mistake' );
117+ return this .history .filter ((change ) => change .type === ' mistake' || change . type === ' blockedEnter ' );
118118 },
119119 correctInputs () {
120120 return this .history .reduce ((acc , event ) => (event .type === ' correct' ? acc + 1 : acc), 0 );
@@ -135,7 +135,7 @@ export default {
135135 return this .format (this .stats .correctLines / this .stats .codeInfo .lines , 1 , 100 );
136136 },
137137 mostMistakesInARow () {
138- return this .mistakes .map ((obj ) => obj .fixQueuePos )
138+ return this .mistakes .map ((obj ) => obj .fixQueuePos || 1 )
139139 .reduce ((acc , value ) => Math .max (acc, value), 0 );
140140 },
141141 correctionTimes () {
You can’t perform that action at this time.
0 commit comments