Skip to content

Commit

Permalink
fix: Update animal popup to use count instead of amount
Browse files Browse the repository at this point in the history
  • Loading branch information
drikusroor committed Oct 14, 2024
1 parent b9b2ce7 commit bd2aad7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/animals/templates/animals-statistics.html
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ <h2 class="text-xl font-semibold mb-4">Average Animals per Day</h2>

if (!animal.animal_type__image__file) {
L.marker([lat, lng]).addTo(map)
.bindPopup(`${animal.amount} ${animal.animal_type__name}(s)`);
.bindPopup(`${animal.count} ${animal.animal_type__name}(s)`);
return;
}

Expand All @@ -251,7 +251,7 @@ <h2 class="text-xl font-semibold mb-4">Average Animals per Day</h2>
});

L.marker([lat, lng], { icon }).addTo(map)
.bindPopup(`${animal.amount} ${animal.animal_type__name}(s)`)
.bindPopup(`${animal.count} ${animal.animal_type__name}(s)`)
}
});

Expand Down

0 comments on commit bd2aad7

Please sign in to comment.