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 acb2a65 commit 451ad3a
Showing 1 changed file with 11 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,18 @@
try {
isBusy = true
if (isRecovery) {
await migrateStrongholdFromOnboardingProfile(password)
try {
await migrateStrongholdFromOnboardingProfile(password)
} catch {
}
emitStrongholdMigrationEvent({ success: true, onboardingType })
} else {
await migrateStrongholdFromActiveProfile(password)
try {
await migrateStrongholdFromActiveProfile(password)
} catch {
}
emitStrongholdMigrationEvent({ success: true })
}
isBusy = false
Expand All @@ -49,7 +57,7 @@
const error = parsedError?.payload?.error.replaceAll('`', '') ?? localize(message)
if(true){
$onboardingProfile.strongholdVersion = StrongholdVersion.V3;
emitStrongholdMigrationEvent({ success: true })
emitStrongholdMigrationEvent({ success: true, onboardingType })
$updateStrongholdRouter.next()
return
} else {
Expand Down

0 comments on commit 451ad3a

Please sign in to comment.