Browse Source

Fix small bug on frontend

Lee Morgan 5 năm trước cách đây
mục cha
commit
f99a130357
2 tập tin đã thay đổi với 2 bổ sung2 xóa
  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;