fix: Always allow to continue when reporting a post if at least one is selected

This commit is contained in:
Marcus Kida 2022-11-21 11:27:14 +01:00
parent df5099dd30
commit 2314646d98
No known key found for this signature in database
GPG Key ID: 19FF64E08013CA40
2 changed files with 2 additions and 3 deletions

View File

@ -59,6 +59,7 @@ class ReportStatusViewController: UIViewController, NeedsDependency, ReportViewC
let navigationActionView = NavigationActionView()
navigationActionView.backgroundColor = Asset.Scene.Onboarding.background.color
navigationActionView.backButton.setTitle(L10n.Common.Controls.Actions.skip, for: .normal)
navigationActionView.hidesBackButton = true
return navigationActionView
}()

View File

@ -71,9 +71,7 @@ class ReportStatusViewModel {
}
$selectStatuses
.map { statuses -> Bool in
return status == nil ? !statuses.isEmpty : statuses.count > 1
}
.map { !$0.isEmpty }
.assign(to: &$isNextButtonEnabled)
}