diff --git a/src/Backend/OrderProcessing.Application/Services/ShoppingCartService.cs b/src/Backend/OrderProcessing.Application/Services/ShoppingCartService.cs index 211d9d0..64953cb 100644 --- a/src/Backend/OrderProcessing.Application/Services/ShoppingCartService.cs +++ b/src/Backend/OrderProcessing.Application/Services/ShoppingCartService.cs @@ -269,7 +269,7 @@ public async Task CheckoutAsync(string username, CheckoutDto checkoutDto) var orderItems = cart.CartItems.Select(item => { var title = books.TryGetValue(item.ISBN, out var b) ? b.Title : item.ISBN; - return new CustomerOrderItem { ISBN = item.ISBN, OrderNum = 0, Quantity = item.Quantity, UnitPrice = item.UnitPrice}; + return new CustomerOrderItem { ISBN = item.ISBN, OrderNum = 0, Quantity = item.Quantity, UnitPrice = item.UnitPrice, Title = title }; }).ToList(); // Create customer order with items and shipping address snapshot