diff --git a/src/renderer/hooks/use-translation.hook.ts b/src/renderer/hooks/use-translation.hook.ts index 5c13efbe..909be04e 100644 --- a/src/renderer/hooks/use-translation.hook.ts +++ b/src/renderer/hooks/use-translation.hook.ts @@ -5,6 +5,7 @@ export function useTranslation(): (translationKey: string, args?: Record) => { + if(!key){ return key; } const tranlatables = key.split(" "); return tranlatables.map((key) => i18nService.translate(key, args)).join(" "); }