fixup: these are actually on the verifier

This commit is contained in:
Bruno Windels 2020-04-02 11:27:00 +02:00
parent fd04f248c4
commit 119fd2f519

View file

@ -282,7 +282,7 @@ export default class VerificationPanel extends React.PureComponent {
_updateVerifierState = () => { _updateVerifierState = () => {
const {request} = this.props; const {request} = this.props;
const {sasEvent, reciprocateQREvent} = request; const {sasEvent, reciprocateQREvent} = request.verifier;
request.verifier.off('show_sas', this._updateVerifierState); request.verifier.off('show_sas', this._updateVerifierState);
request.verifier.off('show_reciprocate_qr', this._updateVerifierState); request.verifier.off('show_reciprocate_qr', this._updateVerifierState);
this.setState({sasEvent, reciprocateQREvent}); this.setState({sasEvent, reciprocateQREvent});
@ -310,7 +310,7 @@ export default class VerificationPanel extends React.PureComponent {
request.on("change", this._onRequestChange); request.on("change", this._onRequestChange);
if (request.verifier) { if (request.verifier) {
const {request} = this.props; const {request} = this.props;
const {sasEvent, reciprocateQREvent} = request; const {sasEvent, reciprocateQREvent} = request.verifier;
this.setState({sasEvent, reciprocateQREvent}); this.setState({sasEvent, reciprocateQREvent});
} }
this._onRequestChange(); this._onRequestChange();