From b3d63ebeedfe63eb856cc2acc0572535860cfb14 Mon Sep 17 00:00:00 2001 From: Danny White <3104761+dnywh@users.noreply.github.com> Date: Mon, 4 May 2026 11:30:33 +1000 Subject: [PATCH] format --- .../ui/GlobalShortcuts/ShortcutChordHud.tsx | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/apps/studio/components/ui/GlobalShortcuts/ShortcutChordHud.tsx b/apps/studio/components/ui/GlobalShortcuts/ShortcutChordHud.tsx index ad7ad14e32a..5d9a51adb6b 100644 --- a/apps/studio/components/ui/GlobalShortcuts/ShortcutChordHud.tsx +++ b/apps/studio/components/ui/GlobalShortcuts/ShortcutChordHud.tsx @@ -101,12 +101,16 @@ export function ShortcutChordHud() { } const fadeStartDelayMs = Math.max(0, remainingMs - timeoutMs * TILE_FADE_START_AT_PROGRESS) - const nextRefreshDelayMs = progress > TILE_FADE_START_AT_PROGRESS ? fadeStartDelayMs : remainingMs + const nextRefreshDelayMs = + progress > TILE_FADE_START_AT_PROGRESS ? fadeStartDelayMs : remainingMs - refreshTimeoutRef.current = setTimeout(() => { - refresh((value) => value + 1) - refreshTimeoutRef.current = null - }, Math.max(0, nextRefreshDelayMs)) + refreshTimeoutRef.current = setTimeout( + () => { + refresh((value) => value + 1) + refreshTimeoutRef.current = null + }, + Math.max(0, nextRefreshDelayMs) + ) }, [progress, remainingMs, timeoutMs]) if (!visibleSteps || isSuppressedByInputFocus) {