Refactor account creation flow to ensure encrypted storage is updated before setting the current account

- Reorder operations in `updateAccount` to call `saveToEncryptedStorage` before `setCurrentAccount`.
This commit is contained in:
greenart7c3
2026-02-09 08:10:20 -03:00
parent 787cfa64ff
commit 71304844c3
@@ -334,8 +334,8 @@ object LocalPreferences {
privKey: String?,
seedWords: String?,
) {
setCurrentAccount(context, account)
saveToEncryptedStorage(context, account, pubKey, privKey, seedWords)
setCurrentAccount(context, account)
}
suspend fun saveToEncryptedStorage(