diff options
author | Fabio Berger <me@fabioberger.com> | 2017-12-06 12:15:31 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2017-12-06 12:15:31 +0800 |
commit | d8adc88c52efa5328f1bf61747201e3ddd06c451 (patch) | |
tree | 3de44220d14650c59c904a4b1c3397910d79a07f | |
parent | 5119e49e47fd848e7b0dca90683c8dfbdc9b8b90 (diff) | |
download | dexon-sol-tools-d8adc88c52efa5328f1bf61747201e3ddd06c451.tar.gz 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.tsx | 2 |
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. } |