Skip to content

Commit

Permalink
Little refactoring -- #1113
Browse files Browse the repository at this point in the history
  • Loading branch information
vmonakhov committed Mar 26, 2024
1 parent 78dbbc6 commit c0b021d
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/components/CognateAnalysisModal/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -1619,12 +1619,15 @@ class CognateAnalysisModal extends React.Component {
text_flag = true;
}

if (field.english_translation === "Affix") {
if (Object.values(field.translations).some(t =>
t.toLowerCase() === "affix" ||
t.toLowerCase() === "аффикс" )) {
affix_flag = morphology || suggestions;
}

if (field.english_translation === "Meaning" ||
field.english_translation === "Meaning of affix") {
if (Object.values(field.translations).some(t =>
t.toLowerCase().includes("meaning") ||
t.toLowerCase().includes("значение"))) {
meaning_flag = morphology || suggestions;
}
}
Expand Down

0 comments on commit c0b021d

Please sign in to comment.