Fix this.props.account null issue

This commit is contained in:
Yang Luo 2023-10-27 02:13:23 +08:00
parent 6ef2b51782
commit 6713dad0af

View File

@ -102,7 +102,7 @@ class LoginPage extends React.Component {
}
if (prevProps.account !== this.props.account && this.props.account !== undefined) {
if (this.props.account.owner === this.props.application?.organization) {
if (this.props.account && this.props.account.owner === this.props.application?.organization) {
const params = new URLSearchParams(this.props.location.search);
const silentSignin = params.get("silentSignin");
if (silentSignin !== null) {