Stopped calling authenticated endpoints if authtoken is does not exist for currentClient. (#463)

This commit is contained in:
prajeet 2023-01-28 13:46:12 +05:45 committed by GitHub
parent edb43040a3
commit 525321cfa4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -18,7 +18,7 @@ public class CurrentAccount: ObservableObject {
public func setClient(client: Client) {
self.client = client
guard client.isAuth else { return }
Task(priority: .userInitiated) {
await fetchUserData()
}