From 0bb423fd5ad9aecf3b6d408471fefb2699d008b3 Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Wed, 29 Jan 2020 08:00:32 +0000 Subject: [PATCH] Add console log on unhandled error to track down rageshake --- src/components/views/right_panel/VerificationPanel.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/views/right_panel/VerificationPanel.js b/src/components/views/right_panel/VerificationPanel.js index 46179183e1..2d3fdd3f40 100644 --- a/src/components/views/right_panel/VerificationPanel.js +++ b/src/components/views/right_panel/VerificationPanel.js @@ -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; }