From 54ee6a2257f51c0ba62317b21d10c3b484cd713a Mon Sep 17 00:00:00 2001
From: Maxime Princelle <maxime@princelle.org>
Date: Fri, 17 Dec 2021 14:17:31 +0100
Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=A8=20fix=20warning=20on=20add=5Fprodu?=
 =?UTF-8?q?ct?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 src/pages/add_product.tsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/pages/add_product.tsx b/src/pages/add_product.tsx
index f9015cf..5efaea5 100644
--- a/src/pages/add_product.tsx
+++ b/src/pages/add_product.tsx
@@ -20,7 +20,7 @@ const AddProduct = () => {
   }, []);
 
   function createItem() {
-    if (category_id !== "n/a" && name != "" && price > 0 && priceAdherant > 0 && stock > 0) {
+    if (category_id !== "n/a" && name !== "" && price > 0 && priceAdherant > 0 && stock > 0) {
       console.log("Creating item: " + name + " " + price + " " + priceAdherant + " " + stock + " " + category_id);
       addItem(name, price, priceAdherant, stock, category_id).then((data) => {
         console.log(data);
-- 
GitLab