Skip to content

Commit 253b776

Browse files
author
Carlos Rufo Jimenez
committed
#fix
1 parent b614200 commit 253b776

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/Login.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ class Login extends Component {
8181

8282
_confirm = data => {
8383
const { token } = this.state.login ? data.login : data.signup
84-
this._saveUserData(token) && this.props.history.push(`/`)
84+
this._saveUserData(token) || this.props.history.push(`/`)
8585
}
8686

8787
_saveUserData = token => {

0 commit comments

Comments
 (0)