Add missing await
This commit is contained in:
parent
da678ba018
commit
f0c27f98b8
@ -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.
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user