aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2017-12-06 12:15:31 +0800
committerFabio Berger <me@fabioberger.com>2017-12-06 12:15:31 +0800
commitd8adc88c52efa5328f1bf61747201e3ddd06c451 (patch)
tree3de44220d14650c59c904a4b1c3397910d79a07f
parent5119e49e47fd848e7b0dca90683c8dfbdc9b8b90 (diff)
downloaddexon-sol-tools-d8adc88c52efa5328f1bf61747201e3ddd06c451.tar
dexon-sol-tools-d8adc88c52efa5328f1bf61747201e3ddd06c451.tar.gz
dexon-sol-tools-d8adc88c52efa5328f1bf61747201e3ddd06c451.tar.bz2
dexon-sol-tools-d8adc88c52efa5328f1bf61747201e3ddd06c451.tar.lz
dexon-sol-tools-d8adc88c52efa5328f1bf61747201e3ddd06c451.tar.xz
dexon-sol-tools-d8adc88c52efa5328f1bf61747201e3ddd06c451.tar.zst
dexon-sol-tools-d8adc88c52efa5328f1bf61747201e3ddd06c451.zip
Add missing await
-rw-r--r--packages/website/ts/components/ui/lifecycle_raised_button.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/website/ts/components/ui/lifecycle_raised_button.tsx b/packages/website/ts/components/ui/lifecycle_raised_button.tsx
index 630f71545..338a3bf76 100644
--- a/packages/website/ts/components/ui/lifecycle_raised_button.tsx
+++ b/packages/website/ts/components/ui/lifecycle_raised_button.tsx
@@ -83,7 +83,7 @@ export class LifeCycleRaisedButton extends
this.setState({
buttonState: ButtonState.LOADING,
});
- const didSucceed = this.props.onClickAsyncFn();
+ const didSucceed = await this.props.onClickAsyncFn();
if (this.didUnmount) {
return; // noop since unmount called before async callback returned.
}