We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 517cf1d commit b11fe91Copy full SHA for b11fe91
1 file changed
mobile-app/lib/ui/views/learn/daily_challenge/daily_challenge_viewmodel.dart
@@ -22,6 +22,19 @@ class DailyChallengeViewModel extends BaseViewModel {
22
23
Future<void> init() async {
24
await _fetchAndGroupChallenges();
25
+ _initAuthenticationListener();
26
+ }
27
+
28
+ void _initAuthenticationListener() {
29
+ // Listen to authentication state changes to refresh completion status
30
+ _auth.isLoggedIn.listen((isLoggedIn) async {
31
+ notifyListeners();
32
+ });
33
34
+ // Also listen to progress stream for user data updates
35
+ _auth.progress.stream.listen((_) {
36
37
38
}
39
40
void toggleBlock(String monthYear) {
0 commit comments