Skip to content

Commit fbb4174

Browse files
committed
Fix missing details text for patients with keep-in-triage status
When a patient's latest triage is keep_in_triage, triage_summary returns nil, and no details text is shown on the programme status card. We should instead show the standard needs_triage text here.
1 parent 2b5c3c0 commit fbb4174

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

app/components/app_patient_session_programme_component.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ def colour
4545
end
4646

4747
def details
48-
if latest_triage
49-
triage_summary(latest_triage)
48+
if latest_triage && (summary = triage_summary(latest_triage)).present?
49+
summary
5050
elsif programme_status.due?
5151
criteria_label =
5252
I18n.t(

0 commit comments

Comments
 (0)