Skip to content

Commit

Permalink
[FIX] Add try-catch to recreateVault (#5906)
Browse files Browse the repository at this point in the history
  • Loading branch information
gantunesr authored Mar 6, 2023
1 parent 0033353 commit 53f9e66
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/components/Views/ChoosePassword/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,11 @@ class ChoosePassword extends PureComponent {
});
});
} catch (error) {
await this.recreateVault('');
try {
await this.recreateVault('');
} catch (e) {
Logger.error(e);
}
// Set state in app as it was with no password
await AsyncStorage.setItem(EXISTING_USER, TRUE);
await AsyncStorage.removeItem(SEED_PHRASE_HINTS);
Expand Down

0 comments on commit 53f9e66

Please sign in to comment.