File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/components/CognateAnalysisModal Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments