diff --git a/src/libs/Localize/index.ts b/src/libs/Localize/index.ts index cc424113857e..fd49902af369 100644 --- a/src/libs/Localize/index.ts +++ b/src/libs/Localize/index.ts @@ -99,8 +99,8 @@ function translateLocal(phrase: TKey, ...variable /** * Return translated string for given error. */ -function translateIfPhraseKey(message: string | [string, Record & {isTranslated?: true}]): string { - if (!message || (Array.isArray(message) && message.length > 0)) { +function translateIfPhraseKey(message: string | [string, Record & {isTranslated?: true}] | []): string { + if (!message || (Array.isArray(message) && message.length === 0)) { return ''; }