Skip to content

Commit

Permalink
Update challengeManager.dart
Browse files Browse the repository at this point in the history
  • Loading branch information
Turtlepaw authored Sep 1, 2024
1 parent 6469fb0 commit a7df10a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/utils/challengeManager.dart
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ class ChallengeProvider with ChangeNotifier {
Future<void> reloadChallenges(BuildContext context) async {
_challenges = [];
await fetchChallenges();
if(context.mounted){
Provider.of<HealthManager>(context, listen: false).fetchHealthData();
}
//if(context.mounted){
//Provider.of<HealthManager>(context, listen: false).fetchHealthData();
//}
}
}

0 comments on commit a7df10a

Please sign in to comment.