Skip to content

Commit

Permalink
Don't display any output for a phone number if a user's is blank. (#94)
Browse files Browse the repository at this point in the history
* Don't display any output for a phone number if a user's is blank.

* [Bot] Update version to 1.3.1

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
Thomas Thorogood and github-actions[bot] authored Aug 30, 2021
1 parent 5f9819d commit 79548da
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
<tr class="summary-row">
<td valign="top">{{ data['name'] }}&nbsp;</td>
<td valign="top" nowrap="nowrap">
{{ data['phone_contacts']['phones']|first }}
{% set phone = data['phone_contacts']['phones']|first %}
{% if phone %}{{ phone }}{% endif %}
</td>
<td valign="top">{{ data['email'] }}&nbsp;</td>
<td>
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "uw-husky-directory"
version = "1.3.0"
version = "1.3.1"
description = "An updated version of the UW Directory"
authors = ["Thomas Thorogood <[email protected]>"]
license = "MIT"
Expand Down

0 comments on commit 79548da

Please sign in to comment.