chore: lint warnings

This commit is contained in:
Zamitto 2024-08-19 21:04:51 -03:00
parent bab041b5f7
commit ac6ff04e69
3 changed files with 7 additions and 7 deletions

View file

@ -62,9 +62,9 @@ export const UserFriendModalList = ({
}; };
useEffect(() => { useEffect(() => {
listContainer.current?.addEventListener("scroll", handleScroll); const container = listContainer.current;
return () => container?.addEventListener("scroll", handleScroll);
listContainer.current?.removeEventListener("scroll", handleScroll); return () => container?.removeEventListener("scroll", handleScroll);
}, [isLoading]); }, [isLoading]);
const reloadList = () => { const reloadList = () => {

View file

@ -125,7 +125,7 @@ export function UserContent({
} }
setCurrentGame(userProfile.currentGame); setCurrentGame(userProfile.currentGame);
}, [gameRunning, isMe]); }, [gameRunning, isMe, userProfile.currentGame]);
useEffect(() => { useEffect(() => {
if (isMe) fetchFriendRequests(); if (isMe) fetchFriendRequests();

View file

@ -51,9 +51,9 @@ export const UserEditProfileBlockList = () => {
}; };
useEffect(() => { useEffect(() => {
listContainer.current?.addEventListener("scroll", handleScroll); const container = listContainer.current;
return () => container?.addEventListener("scroll", handleScroll);
listContainer.current?.removeEventListener("scroll", handleScroll); return () => container?.removeEventListener("scroll", handleScroll);
}, [isLoading]); }, [isLoading]);
const reloadList = () => { const reloadList = () => {