Merge pull request #4088 from matrix-org/bwindels/fixuserpage

Fix user page (missing null check)
This commit is contained in:
Bruno Windels 2020-02-20 11:01:15 +00:00 committed by GitHub
commit 86c871f55f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -92,6 +92,7 @@ export default class RightPanel extends React.Component {
// not mounted in time to get the dispatch.
// Until then, let this code serve as a warning from history.
if (
rps.roomPanelPhaseParams.member &&
userForPanel.userId === rps.roomPanelPhaseParams.member.userId &&
rps.roomPanelPhaseParams.verificationRequest
) {