diff options
author | Shravya Ramesh <shravs1208@gmail.com> | 2021-02-05 08:06:11 -0800 |
---|---|---|
committer | Shravya Ramesh <shravs1208@gmail.com> | 2021-02-05 08:06:11 -0800 |
commit | 40bbce1d53eb43ed05c823e7fea72cab87eaf51a (patch) | |
tree | afb65aa6d8800d1dc7b84b3dd42091a9be5341f3 /src | |
parent | eed4a97314ae4063e2e7bee25c8b7d60827b90c4 (diff) |
bug 2
Diffstat (limited to 'src')
-rw-r--r-- | src/store/actions/userFriends.ts | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/store/actions/userFriends.ts b/src/store/actions/userFriends.ts index 4d191894..763f2575 100644 --- a/src/store/actions/userFriends.ts +++ b/src/store/actions/userFriends.ts @@ -62,15 +62,17 @@ export const friendUnfriendUser = ( data = 'requested'; break; case 'requested': // cancel request: update to no relationship + break; case 'friends': // unfriend: update to no relationship dispatch({ type: updateFriends.type, payload: { - friend, + data: friend, isFriend: true, }, }); data = 'no_record'; + break; } dispatch({ type: userXFriendshipEdited.type, |