Skip to content

Commit 84c1df2

Browse files
committed
Move reset tap counter to analytics tracker
1 parent 050f2fa commit 84c1df2

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

WooCommerce/Classes/POS/Analytics/POSCollectOrderPaymentAnalytics.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ final class POSCollectOrderPaymentAnalytics: CollectOrderPaymentAnalyticsTrackin
5151
analytics.track(event: .PointOfSale.cashCollectPaymentSuccess(
5252
millisecondsSinceCustomerIteractionStarted: elapsedTimeSinceCustomerInteraction
5353
))
54+
resetCheckoutTapCountTracker()
5455
}
5556

5657
func trackPaymentFailure(with error: any Error) { }

WooCommerce/Classes/POS/Models/PointOfSaleAggregateModel.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -252,8 +252,6 @@ extension PointOfSaleAggregateModel {
252252
private func cashPaymentSuccess() {
253253
paymentState = .cash(.paymentSuccess)
254254
collectOrderPaymentAnalyticsTracker.trackSuccessfulCashPayment()
255-
// TODO: Move to trackSuccessfulCashPayment() on #15151
256-
collectOrderPaymentAnalyticsTracker.resetCheckoutTapCountTracker()
257255
}
258256

259257
@MainActor

0 commit comments

Comments
 (0)