diff options
author | Shravya Ramesh <shravs1208@gmail.com> | 2021-02-01 22:02:25 -0800 |
---|---|---|
committer | Shravya Ramesh <shravs1208@gmail.com> | 2021-02-01 22:02:25 -0800 |
commit | 7361492c3d25f71bb444f5f7e35b3113647318f9 (patch) | |
tree | 83a3f1e64bc8a487393b17b337b83251c27ab0ce /src/utils/friends.ts | |
parent | 19f6a1cd849bec601440311dcb4188d7ff0b34ea (diff) |
fullscreen friends + unfriend button
Diffstat (limited to 'src/utils/friends.ts')
-rw-r--r-- | src/utils/friends.ts | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/utils/friends.ts b/src/utils/friends.ts index c10cf1de..a0ff879a 100644 --- a/src/utils/friends.ts +++ b/src/utils/friends.ts @@ -1,8 +1,6 @@ // Handles click on friend/requested/unfriend button -import {useSelector} from 'react-redux'; import {RootState} from '../store/rootReducer'; -import {NO_USER} from '../store/initialStates'; import {ProfilePreviewType, ProfileType, ScreenType, UserType} from '../types'; import {AppDispatch} from '../store/configureStore'; import { @@ -62,4 +60,5 @@ export const handleUnfriend = async ( ) => { await dispatch(unfriendUser(friend, screenType)); await dispatch(updateUserXFriends(friend.id, state)); + dispatch(updateUserXProfileAllScreens(friend.id, state)); }; |