From b2c5a9ef284bacc1522c34a03c84c9f1f50e52f5 Mon Sep 17 00:00:00 2001 From: David Kennedy Date: Thu, 4 Jan 2024 10:20:36 -0500 Subject: [PATCH] fixed title on section on review page for when no other contacts exist --- src/registrar/views/application.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/registrar/views/application.py b/src/registrar/views/application.py index c183457b5..6c494b203 100644 --- a/src/registrar/views/application.py +++ b/src/registrar/views/application.py @@ -540,6 +540,11 @@ class Review(ApplicationWizard): context = super().get_context_data() context["Step"] = Step.__members__ context["application"] = self.application + # if application has no other contacts, need to change title of Step.OTHER_CONTACTS + if not self.application.has_other_contacts(): + titles = context["form_titles"] + titles[Step.OTHER_CONTACTS] = _("No other employees from your organization?") + context["form_titles"] = titles return context def goto_next_step(self):