From a81784e44fbe3d7c8323f7d211a3e78825969322 Mon Sep 17 00:00:00 2001 From: MathieuG-P Date: Tue, 19 Jul 2022 20:57:05 +0200 Subject: [PATCH] bug fix --- src/renderer/hooks/use-translation.hook.ts | 1 + 1 file changed, 1 insertion(+) 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(" "); }