Skip to content

Commit 4139ee7

Browse files
committed
Sort refunds in details view
1 parent a2ba547 commit 4139ee7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Modules/Sources/PointOfSale/Presentation/Orders/POSOrderDetailsView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ private extension POSOrderDetailsView {
312312

313313
@ViewBuilder
314314
func refundsSection(_ order: POSOrder) -> some View {
315-
ForEach(order.refunds, id: \.refundID) { refund in
315+
ForEach(order.refunds.sorted(by: { $0.refundID < $1.refundID }), id: \.refundID) { refund in
316316
refundRow(refund: refund)
317317
divider
318318
}

0 commit comments

Comments
 (0)