diff --git a/.prettierrc b/.prettierrc
index 3bb28d369..7b5484dd7 100644
--- a/.prettierrc
+++ b/.prettierrc
@@ -4,6 +4,6 @@
"trailingComma": "all",
"semi": true,
"singleQuote": false,
- "bracketSpacing": false,
+ "bracketSpacing": true,
"plugins": ["prettier-plugin-tailwindcss"]
}
diff --git a/gui/src/pages/gui/Chat.tsx b/gui/src/pages/gui/Chat.tsx
index a2e234c70..6ca0cc167 100644
--- a/gui/src/pages/gui/Chat.tsx
+++ b/gui/src/pages/gui/Chat.tsx
@@ -12,7 +12,6 @@ import {
useCallback,
useContext,
useEffect,
- useMemo,
useRef,
useState,
} from "react";
@@ -150,16 +149,16 @@ export function Chat() {
useHistory(dispatch);
const scrollToBottom = useCallback(() => {
- if (!topGuiDivRef.current) return
+ if (!topGuiDivRef.current) return;
const elem = topGuiDivRef.current;
elem.scrollTop = elem.scrollHeight - elem.clientHeight;
setIsAtBottom(true);
- }, [topGuiDivRef, setIsAtBottom])
+ }, [topGuiDivRef, setIsAtBottom]);
useEffect(() => {
- if (active) scrollToBottom()
- }, [active, scrollToBottom])
+ if (active) scrollToBottom();
+ }, [active, scrollToBottom]);
useEffect(() => {
// Cmd + Backspace to delete current step
@@ -314,7 +313,7 @@ export function Chat() {
return (
<>