From 1f4d8a7c72405c25a0ade26bfeb8c9c34b546306 Mon Sep 17 00:00:00 2001 From: James Barnsley Date: Tue, 30 May 2017 08:25:11 +1200 Subject: [PATCH] Removing notifications --- src/js/services/ui/reducer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/services/ui/reducer.js b/src/js/services/ui/reducer.js index 54852094..02fa7622 100755 --- a/src/js/services/ui/reducer.js +++ b/src/js/services/ui/reducer.js @@ -718,7 +718,7 @@ export default function reducer(ui = {}, action){ var notifications = Object.assign([], ui.notifications) if( action.index > -1 ){ - notifications.splice(index, 1) + notifications.splice(action.index, 1) } return Object.assign({}, ui, {notifications: notifications})