Skip to content

Commit 1d65d6a

Browse files
authored
[Woo POS] Analytics: Fix clear cart event called incorrectly (#15200)
2 parents ca5e5af + 72a5edd commit 1d65d6a

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

WooCommerce/Classes/POS/Models/PointOfSaleAggregateModel.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,6 @@ extension PointOfSaleAggregateModel {
135135

136136
func removeAllItemsFromCart() {
137137
cart.removeAll()
138-
analytics.track(.pointOfSaleClearCartTapped)
139138
}
140139

141140
func addMoreToCart() {

WooCommerce/Classes/POS/Presentation/CartView.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ struct CartView: View {
3333

3434
Button {
3535
posModel.removeAllItemsFromCart()
36+
ServiceLocator.analytics.track(.pointOfSaleClearCartTapped)
3637
} label: {
3738
Text(Localization.clearButtonTitle)
3839
}

0 commit comments

Comments
 (0)