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(() => {
listContainer.current?.addEventListener("scroll", handleScroll);
return () =>
listContainer.current?.removeEventListener("scroll", handleScroll);
const container = listContainer.current;
container?.addEventListener("scroll", handleScroll);
return () => container?.removeEventListener("scroll", handleScroll);
}, [isLoading]);
const reloadList = () => {

View file

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

View file

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