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

Commit

Permalink
fix(containers/Login): fix mapDispatchToProps.login
Browse files Browse the repository at this point in the history
fix(containers/Login): fix mapDispatchToProps.login
  • Loading branch information
Metnew committed Sep 17, 2017
1 parent fa9001b commit 4c61b2e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/common/containers/Login/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,7 @@ function mapStateToProps (state: GlobalState) {

const mapDispatchToProps = dispatch => ({
login (data) {
const language = navigator && navigator.language
const payload = {...data, lang: language}
dispatch(LOGIN_AUTH(payload))
dispatch(LOGIN_AUTH(data))
}
})

Expand Down

0 comments on commit 4c61b2e

Please sign in to comment.