Skip to content
This repository has been archived by the owner on Jan 4, 2019. It is now read-only.

Commit

Permalink
Merge release/3.0.1 branch (#35) (#36)
Browse files Browse the repository at this point in the history
* fix(Epics): Fix checkoutLoginState at failure

checkoutLoginState epic is now return null instead of error message when user is not authenticated

* chore: Update version number
  • Loading branch information
herflis authored Aug 28, 2017
1 parent d6b7440 commit c1e678d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
2 changes: 1 addition & 1 deletion src/Epics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 });
})
})
}
Expand Down
2 changes: 1 addition & 1 deletion test/EpicsTests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 }]);
})
});
});

0 comments on commit c1e678d

Please sign in to comment.