diff --git a/lib/redux/appReducer.dart b/lib/redux/appReducer.dart index 8a4ec42..717eab0 100644 --- a/lib/redux/appReducer.dart +++ b/lib/redux/appReducer.dart @@ -17,5 +17,9 @@ AppState appReducer(AppState state, action) { return state.copyWith( fireNotificationsUnread: state.fireNotificationsUnread - 1); + if (action is DeleteAllFireNotificationAction) + return state.copyWith( + fireNotificationsUnread: 0); + return state; }