diff options
Diffstat (limited to 'src/components/profile/ProfileBody.tsx')
-rw-r--r-- | src/components/profile/ProfileBody.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/profile/ProfileBody.tsx b/src/components/profile/ProfileBody.tsx index edda5d43..4076e473 100644 --- a/src/components/profile/ProfileBody.tsx +++ b/src/components/profile/ProfileBody.tsx @@ -62,7 +62,7 @@ const ProfileBody: React.FC<ProfileBodyProps> = ({ acceptFriendRequest({id, username, first_name, last_name}), ); await dispatch(updateUserXFriends(id, state)); - dispatch(updateUserXProfileAllScreens(id)); + dispatch(updateUserXProfileAllScreens(id, state)); } catch (err) { console.log(err); } @@ -70,7 +70,7 @@ const ProfileBody: React.FC<ProfileBodyProps> = ({ const handleDeclineFriendRequest = async () => { await dispatch(declineFriendRequest(id)); - dispatch(updateUserXProfileAllScreens(id)); + dispatch(updateUserXProfileAllScreens(id, state)); }; return ( |