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()
|
let navigationActionView = NavigationActionView()
|
||||||
navigationActionView.backgroundColor = Asset.Scene.Onboarding.background.color
|
navigationActionView.backgroundColor = Asset.Scene.Onboarding.background.color
|
||||||
navigationActionView.backButton.setTitle(L10n.Common.Controls.Actions.skip, for: .normal)
|
navigationActionView.backButton.setTitle(L10n.Common.Controls.Actions.skip, for: .normal)
|
||||||
|
navigationActionView.hidesBackButton = true
|
||||||
return navigationActionView
|
return navigationActionView
|
||||||
}()
|
}()
|
||||||
|
|
||||||
|
|
|
@ -71,9 +71,7 @@ class ReportStatusViewModel {
|
||||||
}
|
}
|
||||||
|
|
||||||
$selectStatuses
|
$selectStatuses
|
||||||
.map { statuses -> Bool in
|
.map { !$0.isEmpty }
|
||||||
return status == nil ? !statuses.isEmpty : statuses.count > 1
|
|
||||||
}
|
|
||||||
.assign(to: &$isNextButtonEnabled)
|
.assign(to: &$isNextButtonEnabled)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue