diff --git a/web/src/auth/LoginPage.js b/web/src/auth/LoginPage.js index ba22523c..c0f7b3ee 100644 --- a/web/src/auth/LoginPage.js +++ b/web/src/auth/LoginPage.js @@ -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) {