diff --git a/package.json b/package.json index 0758cd9..6c6edb7 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "sn-redux", - "version": "3.0.0", + "version": "3.0.1", "description": "A set of redux actions, reducers and redux-ovbservable epics for Sense/Net ECM", "main": "dist/src/sn-redux.js", "scripts": { diff --git a/src/Epics.ts b/src/Epics.ts index 5ba2d34..72a7c94 100644 --- a/src/Epics.ts +++ b/src/Epics.ts @@ -300,7 +300,7 @@ export module Epics { return result === Authentication.LoginState.Authenticated ? Actions.UserLoginSuccess(result) : - Actions.UserLoginFailure({ message: 'Failed to log in.' }); + Actions.UserLoginFailure({ message: null }); }) }) } diff --git a/test/EpicsTests.ts b/test/EpicsTests.ts index 1171d7a..5f3dcad 100644 --- a/test/EpicsTests.ts +++ b/test/EpicsTests.ts @@ -600,7 +600,7 @@ describe('Epics', () => { store.dispatch({ type: 'CHECK_LOGIN_STATE_REQUEST' }); expect(store.getActions()).to.be.deep.eq([ { type: 'CHECK_LOGIN_STATE_REQUEST' }, - { type: 'USER_LOGIN_FAILURE', message: 'Failed to log in.' }]); + { type: 'USER_LOGIN_FAILURE', message: null }]); }) }); }); \ No newline at end of file