Browse Source

Fix crash when My Profile is first tab loaded

Closes #5
pixelfed
Shadowfacts 3 years ago
parent
commit
5cd68cf774
Signed by: shadowfacts GPG Key ID: 94A5AB95422746E5
  1. 3
      Tusker/Screens/Profile/ProfileTableViewController.swift

3
Tusker/Screens/Profile/ProfileTableViewController.swift

@ -103,7 +103,8 @@ class ProfileTableViewController: UITableViewController, PreferencesAdaptive {
}
}
if MastodonCache.account(for: accountID) != nil {
if let accountID = accountID,
MastodonCache.account(for: accountID) != nil {
updateUIForPreferences()
}
}

Loading…
Cancel
Save