Add console log on unhandled error to track down rageshake

pull/21833/head
Michael Telatynski 2020-01-29 08:00:32 +00:00
parent 61d0021c8e
commit 0bb423fd5a
1 changed files with 3 additions and 2 deletions

View File

@ -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;
}