From ad458722dcda6444edca663efba844e70c76e0c6 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Wed, 29 Jan 2020 17:58:23 +0100 Subject: [PATCH] evaluate on mount whether we need to call .verify() as the request might be in phase started already. --- src/components/views/right_panel/VerificationPanel.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/views/right_panel/VerificationPanel.js b/src/components/views/right_panel/VerificationPanel.js index 6f580991f9..3527747a66 100644 --- a/src/components/views/right_panel/VerificationPanel.js +++ b/src/components/views/right_panel/VerificationPanel.js @@ -51,7 +51,7 @@ export default class VerificationPanel extends React.PureComponent { constructor(props) { super(props); this.state = {}; - this._hasVerifier = !!props.request.verifier; + this._hasVerifier = false; } renderQRPhase(pending) { @@ -234,6 +234,7 @@ export default class VerificationPanel extends React.PureComponent { componentDidMount() { this.props.request.on("change", this._onRequestChange); + this._onRequestChange(); } componentWillUnmount() {