Skip to content

Commit fafe92b

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

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/components/Login.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,8 @@ 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)
85+
this.props.history.push(`/`)
8586
}
8687

8788
_saveUserData = token => {

0 commit comments

Comments
 (0)