aboutsummaryrefslogtreecommitdiff
path: root/src/utils/friends.ts
diff options
context:
space:
mode:
authorShravya Ramesh <shravs1208@gmail.com>2021-03-18 02:45:46 -0700
committerShravya Ramesh <shravs1208@gmail.com>2021-03-18 02:45:46 -0700
commitfe5ff5ec516302811b7323cadf8e3dd0939beea4 (patch)
treece5dcb988cbad15f5fe3dfb4a41b592ce895d8e4 /src/utils/friends.ts
parent1080adb75c18f6da6b91be4264c69a9bf908ff0d (diff)
services +
Diffstat (limited to 'src/utils/friends.ts')
-rw-r--r--src/utils/friends.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils/friends.ts b/src/utils/friends.ts
index 3398c123..55d65170 100644
--- a/src/utils/friends.ts
+++ b/src/utils/friends.ts
@@ -60,7 +60,7 @@ export const handleAddFriend = async (
dispatch: AppDispatch,
state: RootState,
) => {
- const success = await dispatch(addFriend(friend, screenType));
+ const success = await dispatch(addFriend(friend, screenType, state));
await dispatch(updateUserXFriends(friend.id, state));
await dispatch(updateUserXProfileAllScreens(friend.id, state));
return success;