diff --git a/src/renderer/redux/reducers/subscriptions.js b/src/renderer/redux/reducers/subscriptions.js index b4ad80277..711739ded 100644 --- a/src/renderer/redux/reducers/subscriptions.js +++ b/src/renderer/redux/reducers/subscriptions.js @@ -52,7 +52,7 @@ export default handleActions( } return { ...state, - ...unread, + unread: { ...unread }, subscriptions: newSubscriptions, }; }, @@ -61,11 +61,10 @@ export default handleActions( action: SetSubscriptionLatest ): SubscriptionState => ({ ...state, - subscriptions: state.subscriptions.map( - subscription => - subscription.channelName === action.data.subscription.channelName - ? { ...subscription, latest: action.data.uri } - : subscription + subscriptions: state.subscriptions.map(subscription => + subscription.channelName === action.data.subscription.channelName + ? { ...subscription, latest: action.data.uri } + : subscription ), }), [ACTIONS.UPDATE_SUBSCRIPTION_UNREADS]: (