From 8c4b48108273c344087e6ccd8aaf3ae61cb9ffad Mon Sep 17 00:00:00 2001 From: Chris Kruining Date: Tue, 7 Jan 2025 16:09:23 +0100 Subject: [PATCH] fall back on given label for comands --- src/features/command/context.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/features/command/context.tsx b/src/features/command/context.tsx index c81bc48..56cca71 100644 --- a/src/features/command/context.tsx +++ b/src/features/command/context.tsx @@ -128,7 +128,7 @@ const Handle: Component<{ command: CommandType }> = (props) => { const { t } = useI18n(); return <> - {String(t(props.command.label))} + {String(t(props.command.label) ?? props.command.label)} { shortcut => {