diff --git a/functions/views/my-product.ejs b/functions/views/my-product.ejs index cbeeb04..3bd0ef1 100644 --- a/functions/views/my-product.ejs +++ b/functions/views/my-product.ejs @@ -71,12 +71,14 @@

Status: <%= item.status %>

Price: £<%= item.price %>

- <% var shipbtnStyle = ""%> - <% if (item.status == "shipped") {shipbtnStyle = "visibility:hidden;"} else {shipbtnStyle = "visibility:all;"}%> -
>
+ <% var editbtnStyle = ""%> + <% if (item.status == "shipped") {editbtnStyle = "visibility:hidden;"} else {editbtnStyle = "visibility:all;"}%> +
>
<% var sellbtnStyle = ""%> <% if (item.status == "sold") {sellbtnStyle = "visibility:all;"} else {sellbtnStyle = "visibility:hidden;"}%>
>
+ <% var shipbtnStyle = ""%> + <% if (item.owner == item.holder || item.status == "shipped") {shipbtnStyle = "visibility:hidden;"} else {shipbtnStyle = "visibility:all;"}%>
>