Skip to content

Commit a23efe1

Browse files
Ecarrionrachelmcr
andauthored
Make sure we send items without totals or subtotals
Co-authored-by: Rachel McR. <[email protected]>
1 parent 947d4f0 commit a23efe1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

WooCommerce/Classes/ViewRelated/Orders/Order Creation/Synchronizer/LocalOrderSynchronizer.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ private extension Order {
119119
/// This is needed to create the item without the random generated ID, the remote API would fail otherwise.
120120
func removingItemIDs() -> Order {
121121
copy (
122-
items: items.map { $0.copy(itemID: .zero) }
122+
items: items.map { $0.copy(itemID: .zero, subtotal: "", total: "") }
123123
)
124124
}
125125
}

0 commit comments

Comments
 (0)