Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CRM457-1988: Moar fixes #1227

Merged
merged 3 commits into from
Oct 9, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions app/presenters/nsm/check_answers/application_status_card.rb
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ def response

def expiry_response
I18n.t('nsm.steps.view_claim.expiry_explanations',
requested: claim.further_informations.maximum(:requested_at).to_fs(:stamp),
requested: further_information.requested_at.to_fs(:stamp),
deadline: tag.strong(resubmission_deadline_text)).map(&:html_safe)
end

Expand Down Expand Up @@ -167,7 +167,8 @@ def any_changes?(type)
end

def further_information
claim.pending_further_information
# If a claim is expired, the most recent further information that we want to reference won't be pending
claim.pending_further_information || claim.further_informations.order(:requested_at).last
patrick-laa marked this conversation as resolved.
Show resolved Hide resolved
end

def update_claim_button
Expand Down