diff --git a/web/src/AppBar.jsx b/web/src/AppBar.jsx index d6812be4a..8a8183e00 100644 --- a/web/src/AppBar.jsx +++ b/web/src/AppBar.jsx @@ -42,9 +42,9 @@ export default function AppBar() { sendRestart(); }, [setShowDialog]); // eslint-disable-line react-hooks/exhaustive-deps - const handleDismissRestartDialog = () => { + const handleDismissRestartDialog = useCallback(() => { setShowDialog(false); - }; + }, [setShowDialog]); const handleRestart = useCallback(() => { setShowMoreMenu(false);