Skip to content

Commit 862e316

Browse files
Merge pull request #4239 from nhsuk/hide-register-attendance-when-session-not-accepting-registration
Hide register attendance when session not accepting registration
2 parents 8db29be + 86d78e7 commit 862e316

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

app/components/app_session_actions_component.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def rows
3333
no_consent_response_row,
3434
conflicting_consent_row,
3535
triage_required_row,
36-
(register_attendance_row if session.requires_registration?),
36+
register_attendance_row,
3737
ready_for_vaccinator_row
3838
].compact
3939
end
@@ -73,6 +73,8 @@ def triage_required_row
7373
end
7474

7575
def register_attendance_row
76+
return nil unless session.requires_registration? && session.today?
77+
7678
status = "unknown"
7779
count = patient_sessions.has_registration_status(status).count
7880
href = session_register_path(session, register_status: status)

0 commit comments

Comments
 (0)