Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
alissacrane-cb committed Nov 6, 2024
1 parent 74a71bd commit 81472da
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/components/Stream.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,13 @@ export default function Stream({ currentLanguage }: StreamProps) {
};
}, [isLoading, postChat, isChatMode]);

// biome-ignore lint/suspicious/no-extra-react-hook-deps: Dependency is required
useEffect(() => {
// reset entries on language change
setStreamEntries([]);
}, [currentLanguage]);

// biome-ignore lint/suspicious/no-extra-react-hook-deps: Dependency is required
useEffect(() => {
// scrolls to the bottom of the chat when messages change
bottomRef.current?.scrollIntoView({ behavior: 'smooth' });
Expand Down

0 comments on commit 81472da

Please sign in to comment.