Skip to content

Commit

Permalink
fix: Set translation to UNTRANSLATED state when null or empty value (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
JanCizmar committed Jun 26, 2023
1 parent 1925476 commit 37de81b
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,9 @@ class Translation(
if (!translation.text.isNullOrEmpty() && translation.state == TranslationState.UNTRANSLATED) {
translation.state = TranslationState.TRANSLATED
}
if (translation.text.isNullOrEmpty() && translation.state != TranslationState.UNTRANSLATED) {
translation.state = TranslationState.UNTRANSLATED
}
}
}
}
Expand Down

0 comments on commit 37de81b

Please sign in to comment.