check if verifier sasEvent was already set on mount
this allow the verification panel to fully recover the UI state from an on-going verification request
This commit is contained in:
parent
ec708b5e9b
commit
d49fbf25f7
1 changed files with 5 additions and 1 deletions
|
@ -258,7 +258,11 @@ export default class VerificationPanel extends React.PureComponent {
|
||||||
};
|
};
|
||||||
|
|
||||||
componentDidMount() {
|
componentDidMount() {
|
||||||
this.props.request.on("change", this._onRequestChange);
|
const {request} = this.props;
|
||||||
|
request.on("change", this._onRequestChange);
|
||||||
|
if (request.verifier) {
|
||||||
|
this.setState({sasEvent: request.verifier.sasEvent});
|
||||||
|
}
|
||||||
this._onRequestChange();
|
this._onRequestChange();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue