Explorar el Código

Fix small bug on frontend

Lee Morgan hace 5 años
padre
commit
f99a130357
Se han modificado 2 ficheros con 2 adiciones y 2 borrados
  1. 1 1
      views/dashboardPage/bundle.js
  2. 1 1
      views/dashboardPage/js/newOrder.js

+ 1 - 1
views/dashboardPage/bundle.js

@@ -2807,7 +2807,7 @@ let newOrder = {
                                 ingredients.push({
                                     ingredient: merchant.ingredients[j].ingredient,
                                     quantity: response.ingredients[i].quantity,
-                                    pricePerUnit: response.ingredients[j].pricePerUnit
+                                    pricePerUnit: response.ingredients[i].pricePerUnit
                                 });
 
                                 break;

+ 1 - 1
views/dashboardPage/js/newOrder.js

@@ -115,7 +115,7 @@ let newOrder = {
                                 ingredients.push({
                                     ingredient: merchant.ingredients[j].ingredient,
                                     quantity: response.ingredients[i].quantity,
-                                    pricePerUnit: response.ingredients[j].pricePerUnit
+                                    pricePerUnit: response.ingredients[i].pricePerUnit
                                 });
 
                                 break;