diff --git a/client/.gitignore b/client/.gitignore index 8a5485c..d5383e8 100644 --- a/client/.gitignore +++ b/client/.gitignore @@ -23,7 +23,7 @@ dist-ssr *.sln *.sw? .env - +.scannerwork # vite test coverage /coverage diff --git a/client/src/components/chart/BarChartItem.tsx b/client/src/components/chart/BarChartItem.tsx index 2cba122..5f72e76 100644 --- a/client/src/components/chart/BarChartItem.tsx +++ b/client/src/components/chart/BarChartItem.tsx @@ -20,7 +20,7 @@ export default function BarChartItem({ data, title, description, color }: BarTyp useEffect(() => { const resizeObserver = new ResizeObserver((entries) => { - for (let entry of entries) { + for (const entry of entries) { setComponentWidth(entry.contentRect.width); } }); diff --git a/client/src/components/chat/ChatItem.tsx b/client/src/components/chat/ChatItem.tsx index 7e861d8..f5af9fb 100644 --- a/client/src/components/chat/ChatItem.tsx +++ b/client/src/components/chat/ChatItem.tsx @@ -9,7 +9,7 @@ import { ChatType } from "@/types/chat"; type ChatItemProps = { chatItem: ChatType; - isSameUser: Boolean; + isSameUser: boolean; }; const chatStyle = "p-3 bg-gray-200 text-black break-words whitespace-pre-wrap rounded-md inline-block max-w-[90%]"; export default function ChatItem({ chatItem, isSameUser }: ChatItemProps) { diff --git a/client/src/hooks/queries/useSearch.ts b/client/src/hooks/queries/useSearch.ts index 64ac636..6b35a1f 100644 --- a/client/src/hooks/queries/useSearch.ts +++ b/client/src/hooks/queries/useSearch.ts @@ -18,7 +18,7 @@ export const useSearch = ({ query, filter, page, pageSize }: SearchRequest) => { handler(query); return () => { - handler.cancel && handler.cancel(); + if (handler.cancel) handler.cancel(); }; }, [query]);