Set the terms to empty string when building

This commit is contained in:
Joseph Garrone
2024-06-21 02:13:31 +02:00
parent aa9b7cccc7
commit 638e4e6410
2 changed files with 24 additions and 26 deletions

View File

@ -205,15 +205,7 @@ function createI18nTranslationFunctionsFactory<MessageKey extends string, ExtraM
const messageOrUndefined = (messages_currentLanguage as any)[key] ?? (messages_fallbackLanguage as any)[key];
if (key === "termsText") {
if (params.messages_currentLanguage === undefined) {
return " ";
}
if (realmMessageBundleTermsText !== messageOrUndefined) {
return realmMessageBundleTermsText;
} else {
return "";
}
return realmMessageBundleTermsText;
}
return messageOrUndefined;