Don't crash on login cancelled
This commit is contained in:
parent
268aca9d7e
commit
adef4840de
|
@ -67,7 +67,7 @@ extension OnboardingViewController: InstanceSelectorTableViewControllerDelegate
|
|||
let url = url,
|
||||
let components = URLComponents(url: url, resolvingAgainstBaseURL: true),
|
||||
let item = components.queryItems?.first(where: { $0.name == "code" }),
|
||||
let authCode = item.value else { fatalError() }
|
||||
let authCode = item.value else { return }
|
||||
|
||||
MastodonController.authorize(authorizationCode: authCode) {
|
||||
DispatchQueue.main.async {
|
||||
|
|
Loading…
Reference in New Issue