From e6213fa0f316b13d06c34b9328c559cb38e64466 Mon Sep 17 00:00:00 2001 From: "Vicente J. Ruiz Jurado" Date: Fri, 3 Aug 2018 08:43:23 +0200 Subject: [PATCH] Minor refactor --- lib/redux/fireNotificationReducer.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); }