Fix hotkey formatting

This commit is contained in:
Gregory Schier
2024-01-12 22:12:01 -08:00
parent a48a9eab4a
commit 3086d815c1
4 changed files with 14 additions and 10 deletions

View File

@@ -52,7 +52,7 @@ export const Button = forwardRef<HTMLButtonElement, ButtonProps>(function Button
}: ButtonProps,
ref,
) {
const hotkeyTrigger = useFormattedHotkey(hotkeyAction ?? null);
const hotkeyTrigger = useFormattedHotkey(hotkeyAction ?? null)?.join('');
const fullTitle = hotkeyTrigger ? `${title} ${hotkeyTrigger}` : title;
const classes = useMemo(