diff options
author | Fabio Berger <me@fabioberger.com> | 2017-12-17 14:44:34 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2017-12-17 14:44:34 +0800 |
commit | 5664333490474d1d9a793e887864f125869bf6fa (patch) | |
tree | c5ac6ad74b3bd7d8ca0311e7196655ff206b75f8 /packages/website/ts/components | |
parent | ac78c64f9ec0c1894dce051154a675428c5540e0 (diff) | |
download | dexon-sol-tools-5664333490474d1d9a793e887864f125869bf6fa.tar dexon-sol-tools-5664333490474d1d9a793e887864f125869bf6fa.tar.gz dexon-sol-tools-5664333490474d1d9a793e887864f125869bf6fa.tar.bz2 dexon-sol-tools-5664333490474d1d9a793e887864f125869bf6fa.tar.lz dexon-sol-tools-5664333490474d1d9a793e887864f125869bf6fa.tar.xz dexon-sol-tools-5664333490474d1d9a793e887864f125869bf6fa.tar.zst dexon-sol-tools-5664333490474d1d9a793e887864f125869bf6fa.zip |
Since sending the error report could take some time, we first trigger `onError` so that the user gets notified immediately
Diffstat (limited to 'packages/website/ts/components')
-rw-r--r-- | packages/website/ts/components/send_button.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/website/ts/components/send_button.tsx b/packages/website/ts/components/send_button.tsx index b3fd2aeba..d8d3c7f56 100644 --- a/packages/website/ts/components/send_button.tsx +++ b/packages/website/ts/components/send_button.tsx @@ -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({ |