Skip to content

Commit dbecfce

Browse files
committed
🐛 (FIx) Follow button is working now
FIx:- #46
1 parent fe7d19b commit dbecfce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/page/profile/profilePage.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ class _ProfilePageState extends State<ProfilePage>
261261
}
262262

263263
isFollower() {
264-
var authstate = Provider.of<AuthState>(context);
264+
var authstate = Provider.of<AuthState>(context, listen: false);
265265
if (authstate.profileUserModel.followersList != null &&
266266
authstate.profileUserModel.followersList.isNotEmpty) {
267267
return (authstate.profileUserModel.followersList

0 commit comments

Comments
 (0)