diff options
author | Fabio Berger <me@fabioberger.com> | 2017-12-21 01:36:12 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2017-12-21 01:36:12 +0800 |
commit | 42b3a7c9d756dd2c68256707c0c96a95370329bd (patch) | |
tree | 11d66908433095940a8f8854c593d96585695851 /packages/website/ts/components/inputs | |
parent | 33315046cdca3816a9ce1ae281d0bae5600a5cc5 (diff) | |
download | dexon-sol-tools-42b3a7c9d756dd2c68256707c0c96a95370329bd.tar dexon-sol-tools-42b3a7c9d756dd2c68256707c0c96a95370329bd.tar.gz dexon-sol-tools-42b3a7c9d756dd2c68256707c0c96a95370329bd.tar.bz2 dexon-sol-tools-42b3a7c9d756dd2c68256707c0c96a95370329bd.tar.lz dexon-sol-tools-42b3a7c9d756dd2c68256707c0c96a95370329bd.tar.xz dexon-sol-tools-42b3a7c9d756dd2c68256707c0c96a95370329bd.tar.zst dexon-sol-tools-42b3a7c9d756dd2c68256707c0c96a95370329bd.zip |
Move call to error reporter to end of handler so that even if reporting the error takes a while, it doesn't block the UI
Diffstat (limited to 'packages/website/ts/components/inputs')
-rw-r--r-- | packages/website/ts/components/inputs/allowance_toggle.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/website/ts/components/inputs/allowance_toggle.tsx b/packages/website/ts/components/inputs/allowance_toggle.tsx index 4c15ed4a0..1c39a37d7 100644 --- a/packages/website/ts/components/inputs/allowance_toggle.tsx +++ b/packages/website/ts/components/inputs/allowance_toggle.tsx @@ -84,8 +84,8 @@ export class AllowanceToggle extends React.Component<AllowanceToggleProps, Allow } utils.consoleLog(`Unexpected error encountered: ${err}`); utils.consoleLog(err.stack); - await errorReporter.reportAsync(err); this.props.onErrorOccurred(BalanceErrs.allowanceSettingFailed); + await errorReporter.reportAsync(err); } } private isAllowanceSet() { |