mirror of
https://github.com/yattee/yattee.git
synced 2025-08-09 20:24:06 +00:00
Add account error alerts
This commit is contained in:
@@ -121,6 +121,13 @@ final class PipedAPI: Service, ObservableObject, VideosAPI {
|
||||
)
|
||||
.onSuccess { response in
|
||||
self.account.token = response.json.dictionaryValue["token"]?.string ?? ""
|
||||
if let error = response.json.dictionaryValue["error"]?.string {
|
||||
NavigationModel.shared.presentAlert(
|
||||
title: "Could not connect with your account",
|
||||
message: error
|
||||
)
|
||||
}
|
||||
|
||||
self.configure()
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user