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:17:52 +0800 |
commit | f0c27f98b809afda3c750e77dbd3f35ccd29ec01 (patch) | |
tree | 0b5b373951ecfb9dadc3f7e1d999aa3e5e01f109 /packages/website/ts/components/ui | |
parent | da678ba018a308f74c7bc71e2ed9d153c078ed37 (diff) | |
download | dexon-0x-contracts-f0c27f98b809afda3c750e77dbd3f35ccd29ec01.tar dexon-0x-contracts-f0c27f98b809afda3c750e77dbd3f35ccd29ec01.tar.gz dexon-0x-contracts-f0c27f98b809afda3c750e77dbd3f35ccd29ec01.tar.bz2 dexon-0x-contracts-f0c27f98b809afda3c750e77dbd3f35ccd29ec01.tar.lz dexon-0x-contracts-f0c27f98b809afda3c750e77dbd3f35ccd29ec01.tar.xz dexon-0x-contracts-f0c27f98b809afda3c750e77dbd3f35ccd29ec01.tar.zst dexon-0x-contracts-f0c27f98b809afda3c750e77dbd3f35ccd29ec01.zip |
Add missing await
Diffstat (limited to 'packages/website/ts/components/ui')
-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. } |