diff options
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, |