From 3f234b23b026ab7bf3269db323c5bb4d7ad88eea Mon Sep 17 00:00:00 2001 From: Angela Tran Date: Fri, 14 Jun 2024 17:24:53 +0000 Subject: [PATCH] fix: relax condition so that empty strings will also be filtered out when the admin interface saves back a blank TextField, it saves it as an empty string. --- benefits/core/context_processors.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/benefits/core/context_processors.py b/benefits/core/context_processors.py index d010ab284..0d54ae5f1 100644 --- a/benefits/core/context_processors.py +++ b/benefits/core/context_processors.py @@ -15,7 +15,7 @@ def unique_values(original_list): def _agency_context(agency): return { "eligibility_index_url": agency.eligibility_index_url, - "help_templates": unique_values([v.help_template for v in agency.active_verifiers if v.help_template is not None]), + "help_templates": unique_values([v.help_template for v in agency.active_verifiers if v.help_template]), "info_url": agency.info_url, "long_name": agency.long_name, "phone": agency.phone,