Don't crash on login cancelled

This commit is contained in:
Shadowfacts 2019-09-24 14:45:29 -04:00
parent 268aca9d7e
commit adef4840de
Signed by: shadowfacts
GPG Key ID: 94A5AB95422746E5
1 changed files with 1 additions and 1 deletions

View File

@ -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 {