Skip to content

Commit 0c8282c

Browse files
committed
Update PointOfSaleAggregateModel.swift
1 parent 5bf4238 commit 0c8282c

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

WooCommerce/Classes/POS/Models/PointOfSaleAggregateModel.swift

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -212,9 +212,7 @@ extension PointOfSaleAggregateModel {
212212
if let errorItem = cart.updateLoadingItem(id: placeholderItemID, with: error) {
213213
// Only play a sound and track analytics if the item still exists in the cart.
214214
await soundPlayer.playSound(.barcodeScanFailure, completion: { [weak self] in
215-
DispatchQueue.main.async { [weak self] in
216-
self?.cart.accessibilityFocusedItemID = errorItem.id
217-
}
215+
self?.cart.accessibilityFocusedItemID = errorItem.id
218216
})
219217

220218
analytics.track(

0 commit comments

Comments
 (0)