mirror of
https://github.com/greenart7c3/Amber.git
synced 2026-10-05 19:08:23 +00:00
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:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user