chore: code cleanup
This commit is contained in:
@@ -1252,15 +1252,14 @@ class ParticipantFieldOptionsProvider extends AbstractFieldOptionsProvider
|
||||
}
|
||||
|
||||
return [...$otherServices, $regularPkw];
|
||||
} else {
|
||||
// Discounted has availability, show only discounted (hide regular)
|
||||
// But preserve regular if participant already has it selected
|
||||
if ($preserveRegular) {
|
||||
return [...$otherServices, $discountedPkw, $regularPkw];
|
||||
}
|
||||
|
||||
return [...$otherServices, $discountedPkw];
|
||||
}
|
||||
// Discounted has availability, show only discounted (hide regular)
|
||||
// But preserve regular if participant already has it selected
|
||||
if ($preserveRegular) {
|
||||
return [...$otherServices, $discountedPkw, $regularPkw];
|
||||
}
|
||||
|
||||
return [...$otherServices, $discountedPkw];
|
||||
}
|
||||
|
||||
// Fallback: return all services if we don't have the expected discount/regular pair
|
||||
|
||||
Reference in New Issue
Block a user