diff --git a/Tusker/Screens/Report/ReportView.swift b/Tusker/Screens/Report/ReportView.swift index afe8f5dd..5b85a79c 100644 --- a/Tusker/Screens/Report/ReportView.swift +++ b/Tusker/Screens/Report/ReportView.swift @@ -23,7 +23,7 @@ struct ReportView: View { self.account = mastodonController.persistentContainer.account(for: report.accountID)! self.mastodonController = mastodonController self._report = StateObject(wrappedValue: report) - if mastodonController.instance.rules == nil { + if mastodonController.instance?.rules == nil { report.reason = .spam } } @@ -77,7 +77,7 @@ struct ReportView: View { } } - if mastodonController.instance.rules != nil { + if mastodonController.instance?.rules != nil { NavigationLink { ReportSelectRulesView(mastodonController: mastodonController, report: report) } label: {