diff options
Diffstat (limited to 'src/components')
-rw-r--r-- | src/components/profile/Content.tsx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/components/profile/Content.tsx b/src/components/profile/Content.tsx index a0af1e94..f86d8331 100644 --- a/src/components/profile/Content.tsx +++ b/src/components/profile/Content.tsx @@ -24,7 +24,10 @@ const Content: React.FC<ContentProps> = ({y, isProfileView}) => { ? React.useContext(ProfileContext) : React.useContext(AuthContext); const {logout} = React.useContext(AuthContext); - const {user: loggedInUser} = React.useContext(AuthContext); + const { + user: loggedInUser, + updateFollowers: updateLoggedInUserFollowers, + } = React.useContext(AuthContext); /** * States @@ -100,6 +103,7 @@ const Content: React.FC<ContentProps> = ({y, isProfileView}) => { if (isUpdatedSuccessful) { setFollowed(!followed); updateFollowers(true); + updateLoggedInUserFollowers(true); } }; |