diff --git a/templates/productList.html.twig b/templates/productList.html.twig index 2d17007..1d349f5 100644 --- a/templates/productList.html.twig +++ b/templates/productList.html.twig @@ -23,8 +23,8 @@ {{ product.name }} {{ product.name }} - {% if product.currentStock.stock > 0 %} - stock: {{ product.currentStock.stock }} + {% if product.stock > 0 %} + stock: {{ product.stock }} {% else %} out of stock {% endif %}