Add missing await

This commit is contained in:
Fabio Berger 2017-12-05 22:15:31 -06:00
parent da678ba018
commit f0c27f98b8

View File

@ -83,7 +83,7 @@ export class LifeCycleRaisedButton extends
this.setState({ this.setState({
buttonState: ButtonState.LOADING, buttonState: ButtonState.LOADING,
}); });
const didSucceed = this.props.onClickAsyncFn(); const didSucceed = await this.props.onClickAsyncFn();
if (this.didUnmount) { if (this.didUnmount) {
return; // noop since unmount called before async callback returned. return; // noop since unmount called before async callback returned.
} }