Skip to content

Commit

Permalink
fix person reference, history fa filtering
Browse files Browse the repository at this point in the history
  • Loading branch information
charlienparker committed Jan 24, 2025
1 parent 191a4a4 commit 27dea7d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/helpers/verification_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -531,8 +531,8 @@ def verification_upload_query
end

def verification_admin_actions
person = @evidence.eligibility_state.subject.person
if is_evidence_market_eligibility?(@evidence)
person = @evidence.eligibility_state.subject.person
type = @evidence.evidence_item_key.to_s
gid = GlobalID.parse(@evidence.evidence_gid).model_id
{
Expand Down
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 27dea7d

Please sign in to comment.