Skip to content

Commit 12824df

Browse files
committed
fix now it saves skip state immediately in Puzzle Streak
1 parent c9c745d commit 12824df

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/src/model/puzzle/puzzle_streak.dart

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,10 @@ class PuzzleStreakController extends AsyncNotifier<StreakState> {
8484
puzzle: state.requireValue.puzzle,
8585
nextPuzzle: state.requireValue.nextPuzzle,
8686
));
87+
88+
ref
89+
.read(streakStorageProvider(ref.read(authControllerProvider)?.user.id))
90+
.saveActiveStreak(state.requireValue.streak);
8791
}
8892

8993
/// Advance the streak to the next puzzle.

0 commit comments

Comments
 (0)