From 9e6ff67caf47226a53832ed80481db3bf0449735 Mon Sep 17 00:00:00 2001 From: Emmanouil Konstantinidis Date: Mon, 5 Sep 2016 18:05:11 +0100 Subject: [PATCH 1/2] Update notifications.js --- src/js/reducers/notifications.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/reducers/notifications.js b/src/js/reducers/notifications.js index 125a16c5f..ef7cf14bb 100644 --- a/src/js/reducers/notifications.js +++ b/src/js/reducers/notifications.js @@ -29,7 +29,7 @@ export default function reducer(state = initialState, action) { ...state, failed: true, isFetching: false, - response: action.payload + response: [] }; case MARK_NOTIFICATION_SUCCESS: return { From a62acea2a145b516e31f2511ab987e1b44d7693e Mon Sep 17 00:00:00 2001 From: Emmanouil Konstantinidis Date: Mon, 5 Sep 2016 18:12:01 +0100 Subject: [PATCH 2/2] Fix Tests --- src/js/__tests__/reducers/notifications.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/__tests__/reducers/notifications.js b/src/js/__tests__/reducers/notifications.js index 089cc7549..5250ab25b 100644 --- a/src/js/__tests__/reducers/notifications.js +++ b/src/js/__tests__/reducers/notifications.js @@ -97,7 +97,7 @@ describe('reducers/notifications.js', () => { ...initialState, isFetching: false, failed: true, - response: response + response: [] }); });