Skip to content

Commit 34e3239

Browse files
committed
Minor
1 parent 65033cb commit 34e3239

File tree

1 file changed

+3
-3
lines changed
  • src/components/CognateAnalysisModal

1 file changed

+3
-3
lines changed

src/components/CognateAnalysisModal/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2410,9 +2410,9 @@ class CognateAnalysisModal extends React.Component {
24102410
}
24112411
} else if (this.props.mode === "neuro_suggestions" || this.props.mode === "multi_neuro_suggestions") {
24122412

2413-
const { truth_threshold } = this.state;
2413+
const truthThreshold = parseFloat(this.state.truthThreshold);
24142414

2415-
if (typeof truth_threshold !== 'number' || truth_threshold < 0.7 || truth_threshold > 0.999) {
2415+
if (!truthThreshold || truthThreshold < 0.7 || truthThreshold > 0.999) {
24162416
window.logger.err(this.context("Truth threshold must be between 0,7 and 0,999"));
24172417
this.setState({ computing: false });
24182418
return;
@@ -2475,7 +2475,7 @@ class CognateAnalysisModal extends React.Component {
24752475
matchTranslations: this.state.matchTranslationsFlag,
24762476
sourcePerspectiveId: perspectiveId,
24772477
baseLanguageId: this.baseLanguageId,
2478-
truthThreshold: this.state.truthThreshold,
2478+
truthThreshold,
24792479
perspectiveInfoList,
24802480
stamp: start
24812481
}

0 commit comments

Comments
 (0)