Skip to content

Commit

Permalink
fix: relax condition so that empty strings will also be filtered out
Browse files Browse the repository at this point in the history
when the admin interface saves back a blank TextField, it saves it as
an empty string.
  • Loading branch information
angela-tran committed Jun 14, 2024
1 parent 8eb0e3f commit 3f234b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion benefits/core/context_processors.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 3f234b2

Please sign in to comment.