Skip to content

Commit

Permalink
Merge pull request #61 from indexnetwork/minor-fixes
Browse files Browse the repository at this point in the history
fix
  • Loading branch information
confxsd authored Feb 24, 2024
2 parents 8e85997 + 9766606 commit 4a083c9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions web-app/src/components/site/indexes/AskIndexes/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import FlexRow from "components/layout/base/Grid/FlexRow";
import {
ComponentProps,
FC,
useCallback,
useEffect,
useMemo,
useRef,
Expand Down Expand Up @@ -148,9 +149,9 @@ const AskIndexes: FC<AskIndexesProps> = ({ chatID, did, indexIds }) => {
},
});

const scrollToBottom = () => {
const scrollToBottom = useCallback(() => {
bottomRef.current?.scrollIntoView({ behavior: "smooth" });
};
}, [bottomRef]);

useEffect(() => {
scrollToBottom();
Expand Down

0 comments on commit 4a083c9

Please sign in to comment.