From d0dec86be7e9ecbc50d1a85faca2c61e526c4ade Mon Sep 17 00:00:00 2001 From: marc2332 Date: Thu, 5 Oct 2023 19:42:32 +0200 Subject: [PATCH] fix: Fixes --- .../views/UpdateStrongholdView.svelte | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/desktop/views/update-stronghold/views/UpdateStrongholdView.svelte b/packages/desktop/views/update-stronghold/views/UpdateStrongholdView.svelte index b0ddc992d20..0ae9f8e2cbf 100644 --- a/packages/desktop/views/update-stronghold/views/UpdateStrongholdView.svelte +++ b/packages/desktop/views/update-stronghold/views/UpdateStrongholdView.svelte @@ -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()