Skip to content

Commit f3e143a

Browse files
authored
Merge pull request #219 from manosim/manosim-patch-1
Fix App Crashing on Fetch Notifications Failure
2 parents 34169dc + a62acea commit f3e143a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/js/__tests__/reducers/notifications.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ describe('reducers/notifications.js', () => {
9797
...initialState,
9898
isFetching: false,
9999
failed: true,
100-
response: response
100+
response: []
101101
});
102102

103103
});

src/js/reducers/notifications.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export default function reducer(state = initialState, action) {
2929
...state,
3030
failed: true,
3131
isFetching: false,
32-
response: action.payload
32+
response: []
3333
};
3434
case MARK_NOTIFICATION_SUCCESS:
3535
return {

0 commit comments

Comments
 (0)