Since sending the error report could take some time, we first trigger onError so that the user gets notified immediately

This commit is contained in:
Fabio Berger
2017-12-17 00:44:34 -06:00
parent ac78c64f9e
commit 5664333490

View File

@@ -76,8 +76,8 @@ export class SendButton extends React.Component<SendButtonProps, SendButtonState
} else if (!_.includes(errMsg, 'User denied transaction')) {
utils.consoleLog(`Unexpected error encountered: ${err}`);
utils.consoleLog(err.stack);
await errorReporter.reportAsync(err);
this.props.onError();
await errorReporter.reportAsync(err);
}
}
this.setState({