diff --git a/views/product.ejs b/views/product.ejs
index 90c5b1cb5ba24c38189fba5812e18116426fe432..bd523879e3012d1ea55c626b52a60ec435261627 100644
--- a/views/product.ejs
+++ b/views/product.ejs
@@ -26,6 +26,7 @@
    <form action="/products/<%= product.product_id %>/edit" method="GET">
       <button type="submit" style="color: yellow;">เเก้ไขสินค้า</button>
    </form>
+   <% } %>
    <form action="/cart/add" method="POST">
        <input type="hidden" name="product_id" value="<%= product.product_id %>">
        <input type="hidden" name="price" value="<%= product.price %>">
@@ -33,7 +34,6 @@
        <input type="number" name="quantity" value="1" min="1">
        <button type="submit">เพิ่มลงตะกร้า</button>
    </form>
-<% } %>
 
 
 <a href="/">กลับหน้าหลัก</a>