Skip to content

Commit

Permalink
Merge branch 'verification-details-household-summary' into verificati…
Browse files Browse the repository at this point in the history
…ons-individual-summary
  • Loading branch information
charlienparker committed Jan 24, 2025
2 parents 2ce51fd + 27dea7d commit ffddb99
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,13 @@ def display_upload_for_evidence?(evidence)
end

def build_actions_list(evidence)
is_type_outstanding = (evidence.is_a?(EvidenceStateDecorator) ? evidence.status : evidence.aasm_state) == 'outstanding'
is_type_outstanding = (evidence.is_a?(EvidenceStateDecorator) ? evidence.status.to_s : evidence.aasm_state) == 'outstanding'
if is_type_outstanding
base_actions_list = Eligibilities::Evidence::ADMIN_VERIFICATION_ACTIONS.reject{|el| el == "Reject" }
else
base_actions_list = Eligibilities::Evidence::ADMIN_VERIFICATION_ACTIONS
end
base_actions_list.reject { |el| el == 'View History' } if EnrollRegistry.feature_enabled?(:show_new_verifications_household_summary)
base_actions_list = base_actions_list.reject { |el| el == 'View History' } if EnrollRegistry.feature_enabled?(:show_new_verifications_household_summary)
base_actions_list
end

Expand Down

0 comments on commit ffddb99

Please sign in to comment.