Skip to content

Commit 66141e4

Browse files
committed
move tracking to extension
1 parent b5fd2b3 commit 66141e4

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

WooCommerce/Classes/POS/Models/PointOfSaleAggregateModel.swift

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,8 +153,12 @@ extension PointOfSaleAggregateModel {
153153
paymentState = .card(.idle)
154154
cardPresentPaymentInlineMessage = nil
155155
}
156+
}
156157

157-
private func trackCustomerInteractionStarted() {
158+
// MARK: - Track events
159+
@available(iOS 17.0, *)
160+
private extension PointOfSaleAggregateModel {
161+
func trackCustomerInteractionStarted() {
158162
// At the moment we're assumming that an interaction starts simply when the cart is zero
159163
// but a more complex logic will be needed for other cases
160164
if cart.count == 0 {

0 commit comments

Comments
 (0)