Skip to content

Commit

Permalink
Update app/forms/provider_interface/recruit_with_pending_conditions_f…
Browse files Browse the repository at this point in the history
…orm.rb

Co-authored-by: Carlos Martinez <[email protected]>
  • Loading branch information
stevehook and carlosmartinez authored Oct 12, 2023
1 parent 2ce4866 commit 9fae4fa
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@ class RecruitWithPendingConditionsForm
validates :confirmation, inclusion: { in: %w[yes no] }

def save
return false unless valid?

if confirmed?
if valid? && confirmed?
ConfirmOfferWithPendingSkeConditions.new(actor:, application_choice:).save
end
end
Expand Down

0 comments on commit 9fae4fa

Please sign in to comment.