fix: Always allow to continue when reporting a post if at least one is selected
This commit is contained in:
parent
df5099dd30
commit
2314646d98
|
@ -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
|
||||
}()
|
||||
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue