diff --git a/src/store/reducers/voting.js b/src/store/reducers/voting.js index e7395681b0..fefc9e72a3 100644 --- a/src/store/reducers/voting.js +++ b/src/store/reducers/voting.js @@ -81,7 +81,7 @@ const voting = (state = { }); - case actionTypes.accountLoggedOut: + case actionTypes.accountLoading: return Object.assign({}, state, { votes: {}, delegates: [], diff --git a/src/store/reducers/voting.test.js b/src/store/reducers/voting.test.js index f7ba5203b2..feaeecb8fc 100644 --- a/src/store/reducers/voting.test.js +++ b/src/store/reducers/voting.test.js @@ -44,9 +44,9 @@ describe('Reducer: voting(state, action)', () => { expect(changedState).to.be.equal(state); }); - it('should clean up with action: accountLoggedOut', () => { + it('should clean up with action: accountLoading', () => { const action = { - type: actionTypes.accountLoggedOut, + type: actionTypes.accountLoading, }; const state = { votes: cleanVotes, delegates: fullDelegates, refresh: false }; const changedState = voting(state, action);