mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2024-12-23 21:42:03 +01:00
Stopped calling authenticated endpoints if authtoken is does not exist for currentClient. (#463)
This commit is contained in:
parent
edb43040a3
commit
525321cfa4
@ -18,7 +18,7 @@ public class CurrentAccount: ObservableObject {
|
|||||||
|
|
||||||
public func setClient(client: Client) {
|
public func setClient(client: Client) {
|
||||||
self.client = client
|
self.client = client
|
||||||
|
guard client.isAuth else { return }
|
||||||
Task(priority: .userInitiated) {
|
Task(priority: .userInitiated) {
|
||||||
await fetchUserData()
|
await fetchUserData()
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user