Skip to content

Commit

Permalink
Simplify check consent method task item
Browse files Browse the repository at this point in the history
We don't need to check if the consent has been requested, only if a
consent method has been chosen.
  • Loading branch information
thomasleese committed Feb 21, 2024
1 parent 122a533 commit d4acafb
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,7 @@ def individual_task_items_for(qualification_request:)
delegate :assessment, to: :application_form

def all_consent_methods_selected?
qualification_requests.all? do |qualification_request|
qualification_request.consent_method_unsigned? ||
qualification_request.consent_requested?
end
qualification_requests.none?(&:consent_method_unknown?)
end

def check_consent_method_task_item
Expand Down

0 comments on commit d4acafb

Please sign in to comment.