signin render return modify
This commit is contained in:
parent
03ba9a1e7b
commit
c07ff8996f
|
@ -98,6 +98,7 @@ export class SignIn extends React.Component<Props, State> {
|
||||||
|
|
||||||
if( this.props.isAuthenticated ) {
|
if( this.props.isAuthenticated ) {
|
||||||
this.props.onRedirectHome();
|
this.props.onRedirectHome();
|
||||||
|
return null;
|
||||||
} else {
|
} else {
|
||||||
return signinElement;
|
return signinElement;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user