Skip to content

Commit

Permalink
Merge pull request #38758 from Expensify/hayata-fix-localization-key
Browse files Browse the repository at this point in the history
Fix the check on the translated phrase
  • Loading branch information
roryabraham authored Mar 21, 2024
2 parents 208aafa + f5cf3fb commit b5df48f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libs/Localize/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ function translate<TKey extends TranslationPaths>(desiredLanguage: 'en' | 'es' |
const languageAbbreviation = desiredLanguage.substring(0, 2) as 'en' | 'es';

const translatedPhrase = getTranslatedPhrase(language, phraseKey, languageAbbreviation, ...phraseParameters);
if (translatedPhrase) {
if (translatedPhrase !== null && translatedPhrase !== undefined) {
return translatedPhrase;
}

Expand Down

0 comments on commit b5df48f

Please sign in to comment.