From 62c9fb9847caa3b2d9b4fa57f85c5dd4f82d9876 Mon Sep 17 00:00:00 2001 From: Matthew Grove Date: Thu, 21 Oct 2021 20:20:49 +0100 Subject: [PATCH] [FIX] vocab items with no mistakes not hiding --- src/GroupStats.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/GroupStats.js b/src/GroupStats.js index 301d18a..71004c0 100644 --- a/src/GroupStats.js +++ b/src/GroupStats.js @@ -346,6 +346,7 @@ export default withRouter(class GroupStats extends Component {
{ this.state.filteredIncorrectAnswers + .filter((vocabItem) => vocabItem.answers && vocabItem.answers.length > 0) .map((vocabItem, index) => { const sortedAnswers = vocabItem.answers .sort((a, b) => { @@ -370,7 +371,7 @@ export default withRouter(class GroupStats extends Component { vocabItem.switchedCount > 0 &&
{ - sortedAnswers + sortedAnswers .map((answerItem, index) => answerItem.switchLanguage && (

{answerItem.answer === "" ? skipped : answerItem.answer}

))