Skip to content

Commit

Permalink
Fix: React Hook useEffect has missing dependencies: 'key' and 'onKeyP…
Browse files Browse the repository at this point in the history
…ressed'.
  • Loading branch information
llaoj committed May 16, 2024
1 parent 0172cad commit c25007e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/lib/shortcut.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ export function useShortcut({
}
document.addEventListener("keydown", keyDownHandler);
return () => document.removeEventListener("keydown", keyDownHandler);
}, []);
});
}

0 comments on commit c25007e

Please sign in to comment.