From c810c7c4df46b1323b34eae16a3d07439e5e1aa3 Mon Sep 17 00:00:00 2001 From: vmonakhov Date: Wed, 4 Sep 2024 15:00:58 +0300 Subject: [PATCH] fixed cognate metrics --- src/components/CognateAnalysisModal/index.js | 40 ++++++++++---------- 1 file changed, 19 insertions(+), 21 deletions(-) diff --git a/src/components/CognateAnalysisModal/index.js b/src/components/CognateAnalysisModal/index.js index 42936253..c83b1c57 100644 --- a/src/components/CognateAnalysisModal/index.js +++ b/src/components/CognateAnalysisModal/index.js @@ -2863,30 +2863,28 @@ class CognateAnalysisModal extends React.Component { {(/swadesh$/.test(mode) || this.state.library_present ) && this.state.result !== null && ( - {! /swadesh$/.test(mode) && (<> -

{this.context("Analysis results")}:

+

{this.context("Analysis results")}:

-
-
-
{this.state.dictionary_count}
-
{this.context("dictionaries")}
-
-
-
{this.state.group_count}
-
{this.context("cognate groups")}
-
-
-
{this.state.transcription_count}
-
{this.context("transcriptions analysed")}
-
+
+
+
{this.state.dictionary_count}
+
{this.context("dictionaries")}
+
+
+
{this.state.group_count}
+
{this.context("cognate groups")}
+
+
+
{this.state.transcription_count}
+
{this.context("transcriptions analysed")}
+
-
- {`${this.state.not_enough_count} ${this.context( - "cognate groups were excluded from the analysis due to not having lexical entries in at least two selected dictionaries" - )}.`} -
+
+ {`${this.state.not_enough_count} ${this.context( + "cognate groups were excluded from the analysis due to not having lexical entries in at least two selected dictionaries" + )}.`}
- )} +
{this.state.result.length > 0 && mode !== "suggestions" && mode !== "multi_suggestions" && (