diff --git a/views/Wallet/Wallet.tsx b/views/Wallet/Wallet.tsx index c9e703c57..ce98403a8 100644 --- a/views/Wallet/Wallet.tsx +++ b/views/Wallet/Wallet.tsx @@ -162,16 +162,6 @@ export default class Wallet extends React.Component { }); } - async UNSAFE_componentWillMount(): Promise { - const { - SettingsStore: { updateSettings } - } = this.props; - - const supportedBiometryType = await getSupportedBiometryType(); - - await updateSettings({ supportedBiometryType }); - } - private handleBackButton() { const tabNavigator = this.tabNavigationRef.current; if (!tabNavigator) { @@ -215,6 +205,14 @@ export default class Wallet extends React.Component { 'change', this.handleAppStateChange ); + + const { + SettingsStore: { updateSettings } + } = this.props; + + const supportedBiometryType = await getSupportedBiometryType(); + + await updateSettings({ supportedBiometryType }); } componentWillUnmount() {