Skip to content
This repository has been archived by the owner on Mar 13, 2024. It is now read-only.

Commit

Permalink
fix: game stopwatch rest logic (#123)
Browse files Browse the repository at this point in the history
  • Loading branch information
alestiago authored Feb 16, 2024
1 parent 032212e commit 1057def
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/trashy_road/lib/src/game/widgets/game_stopwatch.dart
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ class _GameStopwatchState extends State<GameStopwatch>
),
BlocListener<GameBloc, GameState>(
listenWhen: (previous, current) {
final hasReset = previous.status != GameStatus.playing &&
current.status == GameStatus.ready;
final hasReset = previous.status == GameStatus.playing &&
current.status == GameStatus.resetting;
return hasReset;
},
listener: (_, __) => _reset(),
Expand Down

0 comments on commit 1057def

Please sign in to comment.