diff --git a/src/main/java/seedu/cafectrl/data/OrderList.java b/src/main/java/seedu/cafectrl/data/OrderList.java index bba031d88b..c368f86fc8 100644 --- a/src/main/java/seedu/cafectrl/data/OrderList.java +++ b/src/main/java/seedu/cafectrl/data/OrderList.java @@ -88,8 +88,8 @@ private void aggregateOrder(Order order, ArrayList aggregatedOrders) { int index = getIndexByDishName(aggregatedOrders, order.getDishName()); //if dish is not found in aggregated orders, add the dish into it if (index == -1) { - aggregatedOrders.add(new Order(order.getOrderedDish(), order.getQuantity(), order.getTotalOrderCost() - , true)); + aggregatedOrders.add(new Order(order.getOrderedDish(), order.getQuantity(), order.getTotalOrderCost(), + true)); } else { //else add the quantities and totalCost accordingly aggregatedOrders.get(index)