fix: check existence of goal as it is never zero

This commit is contained in:
recanman 2024-07-05 10:19:35 -07:00
parent 2c4d0682e9
commit ba46190603

View file

@ -7,7 +7,7 @@
{{ $goal := .Get "goal" }}
{{ $raised := .Get "raised" }}
{{ with .Get "raised" }}
{{ with $goal }}
<p>Raised <b>{{ $raised }}</b> of <b>{{ $goal }}</b> XMR ({{ div (.) ($goal) | mul 100 | int }}%)</p>
{{ end }}
</div>