Skip to content

Commit

Permalink
Check for missing values on contacts table (#258)
Browse files Browse the repository at this point in the history
* Check for missing values on contacts table

* Remove None checks from all contact fields but phone number
  • Loading branch information
edmondsgarrett authored Jan 5, 2024
1 parent 650f07b commit 69be462
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apcd-cms/src/apps/utils/registrations_data_formatting.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def format_phone_number(num):
'notif': reg_cont[2],
'role': reg_cont[3],
'name': reg_cont[4],
'phone': format_phone_number(reg_cont[5]),
'phone': format_phone_number(reg_cont[5]) if reg_cont[5] else None,
'email': reg_cont[6],
}
def _set_modal_content(reg, reg_ent, reg_cont, org_types):
Expand Down

0 comments on commit 69be462

Please sign in to comment.