do not divide by zero
This commit is contained in:
parent
e34b1b55d0
commit
48685bf5ee
@ -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'>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user