diff --git a/lib/redux/fireNotificationReducer.dart b/lib/redux/fireNotificationReducer.dart index f30ed2f..e907e33 100644 --- a/lib/redux/fireNotificationReducer.dart +++ b/lib/redux/fireNotificationReducer.dart @@ -5,7 +5,7 @@ import 'package:fires_flutter/models/fireNotification.dart'; final fireNotificationReducer = combineReducers>([ new TypedReducer, AddedFireNotificationAction>( - _receivedFireNotification), + _addedFireNotification), new TypedReducer, DeletedFireNotificationAction>( _deletedFireNotification), new TypedReducer, DeletedAllFireNotificationAction>( @@ -14,7 +14,7 @@ final fireNotificationReducer = combineReducers>([ _readedFireNotification) ]); -List _receivedFireNotification( +List _addedFireNotification( List notifications, AddedFireNotificationAction action) { return new List.from(notifications)..insert(0, action.notif); }