From 7361492c3d25f71bb444f5f7e35b3113647318f9 Mon Sep 17 00:00:00 2001 From: Shravya Ramesh Date: Mon, 1 Feb 2021 22:02:25 -0800 Subject: fullscreen friends + unfriend button --- src/utils/friends.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/utils') 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)); }; -- cgit v1.2.3-70-g09d2