From 40bbce1d53eb43ed05c823e7fea72cab87eaf51a Mon Sep 17 00:00:00 2001 From: Shravya Ramesh Date: Fri, 5 Feb 2021 08:06:11 -0800 Subject: bug 2 --- src/store/actions/userFriends.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') 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, -- cgit v1.2.3-70-g09d2