diff options
Diffstat (limited to 'src/utils')
-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)); }; |