Merge pull request #305 from dod-ccpo/divide-by-zero

do not divide by zero
This commit is contained in:
dandds 2018-09-19 13:19:20 -04:00 committed by GitHub
commit 5fee75acb2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -36,7 +36,7 @@
<div> <div>
<meter value='{{ spent }}' min='0' max='{{ budget }}' title='{{ spent | dollars }} Total spend to date'> <meter value='{{ spent }}' min='0' max='{{ budget }}' title='{{ spent | dollars }} Total spend to date'>
<div class='meter__fallback' style='width:{{ (spent / budget) * 100 }}%;'></div> <div class='meter__fallback' style='width:{{ (spent / budget) * 100 if budget else 0 }}%;'></div>
</meter> </meter>
<dl class='spend-summary__spent'> <dl class='spend-summary__spent'>