diff --git a/game/lib/profile/completed_challenge_cell.dart b/game/lib/profile/completed_challenge_cell.dart index fd21dc21..627393a3 100644 --- a/game/lib/profile/completed_challenge_cell.dart +++ b/game/lib/profile/completed_challenge_cell.dart @@ -40,7 +40,7 @@ class CompletedChallengeFull extends StatefulWidget { class _CompletedChallengeFullState extends State { final GlobalKey _carouselKey = GlobalKey(); - int _currentIndex = 2; + int _currentIndex = 0; @override Widget build(BuildContext context) { diff --git a/game/lib/profile/completed_challenges_page.dart b/game/lib/profile/completed_challenges_page.dart index c87e97be..be82579f 100644 --- a/game/lib/profile/completed_challenges_page.dart +++ b/game/lib/profile/completed_challenges_page.dart @@ -59,12 +59,11 @@ class CompletedChallengesPage extends StatelessWidget { if (tracker == null || event == null) { continue; } - if (tracker.prevChallengeDates!.length != - event.challenges!.length) { + if (tracker.prevChallenges!.length != event.challenges!.length) { continue; } - var completedDate = tracker.prevChallengeDates!.last; + var completedDate = tracker.prevChallenges.last.dateCompleted; DateTime date = DateFormat("E, d MMM y HH:mm:ss").parse(completedDate);