Skip to content

Commit

Permalink
TCCP: Make account fees whole numbers if possible
Browse files Browse the repository at this point in the history
  • Loading branch information
chosak committed Apr 2, 2024
1 parent a395187 commit 29c5ca3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cfgov/tccp/jinja2/tccp/includes/fields.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

{%- macro currency(value, default=none, boolean=false) -%}
{{
('$%.2f' | format(value))
('$' ~ ('%.0f' if value == (value | int) else '%.2f') | format(value))
if value is not none and (value or not boolean)
else (default if default is not none else "None")
}}
Expand Down

0 comments on commit 29c5ca3

Please sign in to comment.