Skip to content

Commit 0e46b93

Browse files
Salah Aldin FatehSalah Aldin Fateh
authored andcommitted
fix: pass special instructions comment to order items in ProductDialog
1 parent acdbb57 commit 0e46b93

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

pos/src/components/ProductDialog.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,8 @@ const ProductDialog: React.FC<ProductDialogProps> = ({
252252
const orderItem: OrderItem = {
253253
...selectedItem,
254254
quantity: numericQuantity,
255-
price: basePrice
255+
price: basePrice,
256+
comment: comments || undefined
256257
};
257258
addToOrder(orderItem);
258259

0 commit comments

Comments
 (0)