Skip to content

Commit e152cf2

Browse files
authored
Merge branch 'issue/6128-basic-local-implementation' into issue/6128-add-product-support
2 parents 8cc64f2 + f72fb76 commit e152cf2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ private struct ProductInputTransformer {
124124
///
125125
private static func remove(input: OrderSyncProductInput, from order: Order) -> Order {
126126
var items = order.items
127-
items.removeAll { $0.itemID == input.id.hashValue }
127+
items.removeAll { $0.itemID == input.id }
128128
return order.copy(items: items)
129129
}
130130

@@ -142,7 +142,7 @@ private struct ProductInputTransformer {
142142
}
143143
}()
144144

145-
return OrderItem(itemID: Int64(input.id.hashValue),
145+
return OrderItem(itemID: input.id,
146146
name: "",
147147
productID: parameters.productID,
148148
variationID: parameters.variationID ?? 0,

0 commit comments

Comments
 (0)