fixed price .toFixed(2)

This commit is contained in:
Janis M
2022-03-30 11:06:31 +02:00
parent e6eaa271cd
commit e51a7d0702
3 changed files with 4 additions and 4 deletions

View File

@@ -21,7 +21,7 @@
<p class="seller">Verkäufer: <%= product.sellerName%></p><br>
<p class="product-detail"><b>Preis:</b> <%= product.price %> € / Stück</h2>
<p class="product-detail"><b>Preis:</b> <%= product.price.toFixed(2) %> € / Stück</h2>
<p class="product-detail"><b>Kategorie:</b> <%= category.name %></h2>
<div>
<% if(product.quantity > 0){%>