Skip to content

Commit

Permalink
fix: Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
marc2332 committed Oct 5, 2023
1 parent 6eef74b commit d0dec86
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,20 +33,20 @@
try {
isBusy = true
if (isRecovery) {
await migrateStrongholdFromOnboardingProfile(password)
emitStrongholdMigrationEvent({ success: true, onboardingType })
} else {
try {
await migrateStrongholdFromOnboardingProfile(password)
emitStrongholdMigrationEvent({ success: true, onboardingType })
await migrateStrongholdFromActiveProfile(password)
emitStrongholdMigrationEvent({ success: true })
} catch (err) {
const message = err?.message ?? ''
if (message.includes('input snapshot')) {
$onboardingProfile.strongholdVersion = StrongholdVersion.V3
emitStrongholdMigrationEvent({ success: true, onboardingType })
emitStrongholdMigrationEvent({ success: true })
$updateStrongholdRouter.next()
}
}
} else {
await migrateStrongholdFromActiveProfile(password)
emitStrongholdMigrationEvent({ success: true })
}
isBusy = false
$updateStrongholdRouter.next()
Expand Down

0 comments on commit d0dec86

Please sign in to comment.