We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 572107e commit ae7a85bCopy full SHA for ae7a85b
WooCommerce/Classes/ViewRelated/CardPresentPayments/CardReaderConnectionController.swift
@@ -536,15 +536,19 @@ private extension CardReaderConnectionController {
536
return
537
}
538
539
- if underlyingError == .readerSoftwareUpdateFailedBatteryLow {
+ switch underlyingError {
540
+ case .readerSoftwareUpdateFailedInterrupted:
541
+ // Update was cancelled, don't treat this as an error
542
+ return
543
+ case .readerSoftwareUpdateFailedBatteryLow:
544
alerts.updatingFailedLowBattery(
545
from: from,
546
batteryLevel: batteryLevel,
547
close: {
548
self.state = .searching
549
550
)
- } else {
551
+ default:
552
alerts.updatingFailed(
553
554
tryAgain: nil,
0 commit comments