aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website/ts/components/send_button.tsx
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2017-12-17 14:44:34 +0800
committerFabio Berger <me@fabioberger.com>2017-12-17 14:44:34 +0800
commit5664333490474d1d9a793e887864f125869bf6fa (patch)
treec5ac6ad74b3bd7d8ca0311e7196655ff206b75f8 /packages/website/ts/components/send_button.tsx
parentac78c64f9ec0c1894dce051154a675428c5540e0 (diff)
downloaddexon-0x-contracts-5664333490474d1d9a793e887864f125869bf6fa.tar.gz
dexon-0x-contracts-5664333490474d1d9a793e887864f125869bf6fa.tar.zst
dexon-0x-contracts-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/send_button.tsx')
-rw-r--r--packages/website/ts/components/send_button.tsx2
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({