File tree 2 files changed +18
-1
lines changed
2 files changed +18
-1
lines changed Original file line number Diff line number Diff line change @@ -386,7 +386,14 @@ export const createWallet = async (
386
386
alreadyExistingWallet &&
387
387
( type === WalletTypes . readOnly || isPrivateKeyOverwritingSeedMnemonic )
388
388
) {
389
- Alert . alert ( 'Oops!' , 'Looks like you already imported this wallet!' ) ;
389
+ setTimeout (
390
+ ( ) =>
391
+ Alert . alert (
392
+ 'Oops!' ,
393
+ 'Looks like you already imported this wallet!'
394
+ ) ,
395
+ 1
396
+ ) ;
390
397
logger . sentry ( '[createWallet] - already imported this wallet' ) ;
391
398
return null ;
392
399
}
Original file line number Diff line number Diff line change @@ -260,11 +260,21 @@ export default function ImportSeedPhraseSheet() {
260
260
analytics . track ( 'Imported seed phrase' , {
261
261
hadPreviousAddressWithValue,
262
262
} ) ;
263
+ } else {
264
+ // Wait for error messages then refocus
265
+ setTimeout ( ( ) => {
266
+ inputRef . current ?. focus ( ) ;
267
+ initializeWallet ( ) ;
268
+ } , 100 ) ;
263
269
}
264
270
} )
265
271
. catch ( error => {
266
272
handleSetImporting ( false ) ;
267
273
logger . error ( 'error importing seed phrase: ' , error ) ;
274
+ setTimeout ( ( ) => {
275
+ inputRef . current ?. focus ( ) ;
276
+ initializeWallet ( ) ;
277
+ } , 100 ) ;
268
278
} ) ;
269
279
} , 50 ) ;
270
280
}
You can’t perform that action at this time.
0 commit comments