From b4c260233f8685f3e1aad6e4d125867c41148f13 Mon Sep 17 00:00:00 2001 From: Zamitto <167933696+zamitto@users.noreply.github.com> Date: Thu, 15 Aug 2024 18:40:48 -0300 Subject: [PATCH] chore: lint --- src/renderer/src/pages/user/user-content.tsx | 4 ++-- src/renderer/src/pages/user/user.tsx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/renderer/src/pages/user/user-content.tsx b/src/renderer/src/pages/user/user-content.tsx index 2946523d..b16c49bb 100644 --- a/src/renderer/src/pages/user/user-content.tsx +++ b/src/renderer/src/pages/user/user-content.tsx @@ -115,7 +115,7 @@ export function UserContent({ useEffect(() => { if (isMe) fetchFriendRequests(); - }, [isMe]); + }, [isMe, fetchFriendRequests]); useEffect(() => { if (isMe && profileBackground) { @@ -129,7 +129,7 @@ export function UserContent({ } ); } - }, [profileBackground, isMe]); + }, [profileBackground, isMe, userProfile.profileImageUrl]); const handleFriendAction = (userId: string, action: FriendAction) => { try { diff --git a/src/renderer/src/pages/user/user.tsx b/src/renderer/src/pages/user/user.tsx index 4c45f789..565d412a 100644 --- a/src/renderer/src/pages/user/user.tsx +++ b/src/renderer/src/pages/user/user.tsx @@ -31,7 +31,7 @@ export const User = () => { navigate(-1); } }); - }, [dispatch, userId, t]); + }, [dispatch, navigate, showErrorToast, userId, t]); useEffect(() => { getUserProfile();