Lee Morgan пре 6 година
родитељ
комит
d7c1f6e1f2
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      views/dashboardPage/components/addIngredients.ejs

+ 1 - 1
views/dashboardPage/components/addIngredients.ejs

@@ -147,7 +147,7 @@
                     }
                 }
 
-                if(addIngredients > 0){
+                if(addIngredients.length > 0){
                     fetch("/merchant/ingredients/add", {
                         method: "PUT",
                         headers: {