Fixed add accounts
This commit is contained in:
parent
059fe3463b
commit
e93e05872a
|
@ -34,8 +34,8 @@ class AppAccountsManager: ObservableObject {
|
|||
func add(account: AppAccount) {
|
||||
do {
|
||||
try account.save()
|
||||
currentAccount = account
|
||||
availableAccounts.append(account)
|
||||
currentAccount = account
|
||||
} catch { }
|
||||
}
|
||||
|
||||
|
|
|
@ -126,8 +126,6 @@ struct AddAccountView: View {
|
|||
do {
|
||||
let oauthToken = try await client.continueOauthFlow(url: url)
|
||||
appAccountsManager.add(account: AppAccount(server: client.server, oauthToken: oauthToken))
|
||||
await currentAccount.fetchCurrentAccount()
|
||||
await currentInstance.fetchCurrentInstance()
|
||||
isSigninIn = false
|
||||
dismiss()
|
||||
} catch {
|
||||
|
|
Loading…
Reference in New Issue