You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-05 23:10:41 +03:00
Add console log on unhandled error to track down rageshake
This commit is contained in:
@@ -164,11 +164,11 @@ export default class VerificationPanel extends React.PureComponent {
|
||||
}
|
||||
|
||||
render() {
|
||||
const {member} = this.props;
|
||||
const {member, phase} = this.props;
|
||||
|
||||
const displayName = member.displayName || member.name || member.userId;
|
||||
|
||||
switch (this.props.phase) {
|
||||
switch (phase) {
|
||||
case PHASE_READY:
|
||||
return this.renderQRPhase();
|
||||
case PHASE_STARTED:
|
||||
@@ -191,6 +191,7 @@ export default class VerificationPanel extends React.PureComponent {
|
||||
case PHASE_CANCELLED:
|
||||
return this.renderCancelledPhase();
|
||||
}
|
||||
console.error("VerificationPanel unhandled phase:", phase)
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user