aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorShravya Ramesh <shravs1208@gmail.com>2021-02-05 08:06:11 -0800
committerShravya Ramesh <shravs1208@gmail.com>2021-02-05 08:06:11 -0800
commit40bbce1d53eb43ed05c823e7fea72cab87eaf51a (patch)
treeafb65aa6d8800d1dc7b84b3dd42091a9be5341f3 /src
parenteed4a97314ae4063e2e7bee25c8b7d60827b90c4 (diff)
bug 2
Diffstat (limited to 'src')
-rw-r--r--src/store/actions/userFriends.ts4
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,