UI tests fix

This commit is contained in:
Mauro Romito
2025-04-28 15:00:04 +02:00
committed by Mauro
parent 65e62b7c75
commit cbb509254b
5 changed files with 10 additions and 7 deletions
@@ -15,11 +15,12 @@ enum PollFormScreenViewModelAction: Equatable {
struct PollFormScreenViewState: BindableState {
let mode: PollFormMode
let maxNumberOfOptions = 20
var maxNumberOfOptions: Int
var bindings: PollFormScreenViewStateBindings = .init()
init(mode: PollFormMode) {
init(mode: PollFormMode, maxNumberOfOptions: Int) {
self.mode = mode
self.maxNumberOfOptions = maxNumberOfOptions
switch mode {
case .new: