Update lib/leaderboard/bloc/leaderboard_bloc.dart

Co-authored-by: Erick <erickzanardoo@gmail.com>
pull/57/head
Rui Miguel Alonso 4 years ago committed by GitHub
parent 88789e8a2e
commit bb7fe8f67b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -36,7 +36,7 @@ class LeaderboardBloc extends Bloc<LeaderboardEvent, LeaderboardState> {
leaderboard: top10Leaderboard, leaderboard: top10Leaderboard,
), ),
); );
} catch (error, _) { } catch (error) {
emit(state.copyWith(status: LeaderboardStatus.error)); emit(state.copyWith(status: LeaderboardStatus.error));
addError(error); addError(error);
} }

Loading…
Cancel
Save