Skip to content

Commit

Permalink
Clear voucher date available if the voucher is being made unavailable (
Browse files Browse the repository at this point in the history
  • Loading branch information
eanders authored Sep 17, 2024
1 parent f93406c commit 4e7bf57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/match_decisions_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ def update # rubocop:disable Metrics/AbcSize

if decision_params[:disable_opportunity] == '1'
voucher = @match.opportunity.voucher
voucher.update(available: false) if voucher.present?
voucher.update(available: false, date_available: nil) if voucher.present?
@match.opportunity.update(available: false, available_candidate: false)
end

Expand Down

0 comments on commit 4e7bf57

Please sign in to comment.