Fix recover password redirection bug
This commit is contained in:
parent
c3d1637615
commit
9a40c63cf4
|
@ -75,7 +75,7 @@ class MainRecoverPasswordPage extends React.Component {
|
|||
}
|
||||
|
||||
onPasswordRecovered(response) {
|
||||
setTimeout(() => {history.push(response.data.staff ? '/admin' : '/')}, 2000);
|
||||
setTimeout(() => {history.push((response.data.staff*1) ? '/admin' : '/')}, 2000);
|
||||
this.setState({
|
||||
recoverStatus: 'valid',
|
||||
loading: false
|
||||
|
|
Loading…
Reference in New Issue