diff --git a/screen/wallets/ImportWalletDiscovery.tsx b/screen/wallets/ImportWalletDiscovery.tsx index 0b08df683..260bbdbbd 100644 --- a/screen/wallets/ImportWalletDiscovery.tsx +++ b/screen/wallets/ImportWalletDiscovery.tsx @@ -138,16 +138,13 @@ const ImportWalletDiscovery: React.FC = () => { }); return () => { - if (task.current) { - task.current.stop(); - } + task.current?.stop(); }; }, [askPassphrase, importText, navigation, saveWallet, searchAccounts]); const handleCustomDerivation = () => { - if (task.current) { - task.current.stop(); - } + task.current?.stop(); + navigation.navigate('ImportCustomDerivationPath', { importText, password }); };