fix: Navigation to only occur after successful account creation

This commit is contained in:
Shibo Lyu 2025-04-12 04:18:50 +08:00
parent a5e1a07e69
commit a27b585f26

View file

@ -45,11 +45,11 @@
const accountStore = await openAccountStore();
const idKeyId = await accountStore.createAccount(profile, password);
$currentAccountStore = idKeyId;
goto('/settings');
} catch (error) {
console.error(error);
}
isBusy = false;
goto('/settings');
}
</script>