Explorar o código

Fix small bug on frontend

Lee Morgan %!s(int64=5) %!d(string=hai) anos
pai
achega
f99a130357
Modificáronse 2 ficheiros con 2 adicións e 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;