diff options
author | Ashm Walia <ashmwalia@outlook.com> | 2021-01-15 19:04:07 -0800 |
---|---|---|
committer | Ashm Walia <ashmwalia@outlook.com> | 2021-01-15 19:04:07 -0800 |
commit | 72aabf60d815cdecf59aaef86df57be6a557efd0 (patch) | |
tree | 4fac8f3fe8c44d0730fa3d7707500aa1a68afcd0 /src/components/profile/ProfileBody.tsx | |
parent | ed91266981e1662b512baa1856d8c921a8718e68 (diff) |
Done
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 ( |