BugFix: Ignoring case when comparing original and translated versions.
This commit is contained in:
+1
-1
@@ -59,7 +59,7 @@ fun TranslatableRichTextViewer(
|
||||
var showOriginal by remember { mutableStateOf(false) }
|
||||
|
||||
TranslateAndWatchLanguageChanges(content, accountViewModel) { result, newShowOriginal ->
|
||||
if (translatedTextState.result != result.result ||
|
||||
if (!translatedTextState.result.equals(result.result, true) ||
|
||||
translatedTextState.sourceLang != result.sourceLang ||
|
||||
translatedTextState.targetLang != result.targetLang
|
||||
) {
|
||||
|
||||
Reference in New Issue
Block a user