aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website/ts/components/inputs/allowance_toggle.tsx
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2017-12-21 01:36:12 +0800
committerFabio Berger <me@fabioberger.com>2017-12-21 01:36:12 +0800
commit42b3a7c9d756dd2c68256707c0c96a95370329bd (patch)
tree11d66908433095940a8f8854c593d96585695851 /packages/website/ts/components/inputs/allowance_toggle.tsx
parent33315046cdca3816a9ce1ae281d0bae5600a5cc5 (diff)
downloaddexon-sol-tools-42b3a7c9d756dd2c68256707c0c96a95370329bd.tar.gz
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/allowance_toggle.tsx')
-rw-r--r--packages/website/ts/components/inputs/allowance_toggle.tsx2
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() {