Skip to content

Commit

Permalink
Update puzzle_controller.dart
Browse files Browse the repository at this point in the history
Fix tests
  • Loading branch information
maxmitz committed Dec 20, 2024
1 parent 13e00cb commit a8f16ac
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/src/model/puzzle/puzzle_controller.dart
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,9 @@ class PuzzleController extends _$PuzzleController {
}

void _saveCurrentStreakLocally() {
if(state.streak != null) {
ref.read(streakStorageProvider(initialContext.userId)).saveActiveStreak(state.streak!);
}
}

void _sendStreakResult() {
Expand Down

0 comments on commit a8f16ac

Please sign in to comment.