diff --git a/screen/wallets/transactions.js b/screen/wallets/transactions.js index 55b9c14dd..57ed7ceb2 100644 --- a/screen/wallets/transactions.js +++ b/screen/wallets/transactions.js @@ -226,7 +226,7 @@ export default class WalletTransactions extends Component { }; } - async componentDidMount() { + componentDidMount() { this._unsubscribeFocus = this.props.navigation.addListener('focus', this.onFocus); this._unsubscribeBlur = this.props.navigation.addListener('blur', this.onBlur); @@ -234,8 +234,8 @@ export default class WalletTransactions extends Component { this.interval = setInterval(() => { this.setState(prev => ({ timeElapsed: prev.timeElapsed + 1 })); }, 60000); - const isHandOffUseEnabled = await HandoffSettings.isHandoffUseEnabled(); - this.setState({ isHandOffUseEnabled, isLoading: false }); + HandoffSettings.isHandoffUseEnabled().then(enabled => this.setState({ isHandOffUseEnabled: enabled })); + this.setState({ isLoading: false }); } /**