Fix hotkey formatting

This commit is contained in:
Gregory Schier
2024-01-12 22:12:01 -08:00
parent 9c4cd898a2
commit b212b80927
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(