diff options
Diffstat (limited to 'src/components/profile/ProfilePreview.tsx')
-rw-r--r-- | src/components/profile/ProfilePreview.tsx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/components/profile/ProfilePreview.tsx b/src/components/profile/ProfilePreview.tsx index ec0be50c..6848f993 100644 --- a/src/components/profile/ProfilePreview.tsx +++ b/src/components/profile/ProfilePreview.tsx @@ -39,7 +39,9 @@ const ProfilePreview: React.FC<ProfilePreviewProps> = ({ style, }) => { const navigation = useNavigation(); - const {loadProfile, updateMoments} = useContext(ProfileContext); + const {loadProfile, updateMoments, updateFollowers} = useContext( + ProfileContext, + ); const [avatarURI, setAvatarURI] = useState<string | null>(null); const [user, setUser] = useState<UserType>(NO_USER); useEffect(() => { @@ -131,6 +133,7 @@ const ProfilePreview: React.FC<ProfilePreviewProps> = ({ //Set new moments to true makes sure that we download the moment for the user being viewed again. loadProfile(user.id, user.username); updateMoments(true); + updateFollowers(true); if (!isComment) { navigation.push('Profile', { isProfileView: true, |