Skip to content

Commit d7f3b8b

Browse files
authored
[Woo POS] Show connection flow under location modal (#15222)
2 parents e097814 + c9e70e9 commit d7f3b8b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

WooCommerce/Classes/POS/Presentation/Card Present Payments/PointOfSaleCardPresentPaymentEventPresentationStyle.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -246,14 +246,14 @@ enum PointOfSaleCardPresentPaymentEventPresentationStyle {
246246
/// Not-yet supported types
247247
case .selectSearchType:
248248
return nil
249-
/// Immediately request location permission until POS view is created
249+
/// Immediately request location permission until POS view is created, showing `Connecting to reader` underneath.
250250
case .locationRequestPreAlert(let requestPermission):
251251
requestPermission()
252-
return nil
253-
/// Skip location required step and rely on error during the payment process until POS view is created
252+
self = .alert(.connectingToReader(viewModel: PointOfSaleCardPresentPaymentConnectingToReaderAlertViewModel()))
253+
/// Skip location required step and rely on error during the payment process until POS view is created, showing `Connecting to reader` underneath.
254254
case .locationRequired(_, let skip):
255255
skip()
256-
return nil
256+
self = .alert(.connectingToReader(viewModel: PointOfSaleCardPresentPaymentConnectingToReaderAlertViewModel()))
257257
}
258258
}
259259
}

0 commit comments

Comments
 (0)