hide toast when request is accepted

if this is a .request > .ready request, dismissing when in .ready is what we want, as that is how you accept the request
if this is a .start request, we shouldn't dismiss

so only add .ready to the phases to hide the toast, not .started
pull/21833/head
Bruno Windels 2020-02-02 10:25:05 +01:00
parent fa13bb9689
commit 049a6d2064
1 changed files with 1 additions and 1 deletions

View File

@ -58,7 +58,7 @@ export default class VerificationRequestToast extends React.PureComponent {
_checkRequestIsPending = () => { _checkRequestIsPending = () => {
const {request} = this.props; const {request} = this.props;
if (request.done || request.cancelled || request.observeOnly) { if (request.ready || request.done || request.cancelled || request.observeOnly) {
ToastStore.sharedInstance().dismissToast(this.props.toastKey); ToastStore.sharedInstance().dismissToast(this.props.toastKey);
} }
}; };