diff --git a/src/model/wallet.js b/src/model/wallet.js index ffcae71cc27..9bb656ea15a 100644 --- a/src/model/wallet.js +++ b/src/model/wallet.js @@ -386,7 +386,14 @@ export const createWallet = async ( alreadyExistingWallet && (type === WalletTypes.readOnly || isPrivateKeyOverwritingSeedMnemonic) ) { - Alert.alert('Oops!', 'Looks like you already imported this wallet!'); + setTimeout( + () => + Alert.alert( + 'Oops!', + 'Looks like you already imported this wallet!' + ), + 1 + ); logger.sentry('[createWallet] - already imported this wallet'); return null; } diff --git a/src/screens/ImportSeedPhraseSheet.js b/src/screens/ImportSeedPhraseSheet.js index 77f47d703ac..764ce737fd8 100644 --- a/src/screens/ImportSeedPhraseSheet.js +++ b/src/screens/ImportSeedPhraseSheet.js @@ -260,11 +260,21 @@ export default function ImportSeedPhraseSheet() { analytics.track('Imported seed phrase', { hadPreviousAddressWithValue, }); + } else { + // Wait for error messages then refocus + setTimeout(() => { + inputRef.current?.focus(); + initializeWallet(); + }, 100); } }) .catch(error => { handleSetImporting(false); logger.error('error importing seed phrase: ', error); + setTimeout(() => { + inputRef.current?.focus(); + initializeWallet(); + }, 100); }); }, 50); }