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.
2 parents 86ec0a9 + ae7a85b commit 1da71a3Copy full SHA for 1da71a3
WooCommerce/Classes/ViewRelated/CardPresentPayments/CardReaderConnectionController.swift
@@ -539,15 +539,19 @@ private extension CardReaderConnectionController {
539
return
540
}
541
542
- if underlyingError == .readerSoftwareUpdateFailedBatteryLow {
+ switch underlyingError {
543
+ case .readerSoftwareUpdateFailedInterrupted:
544
+ // Update was cancelled, don't treat this as an error
545
+ return
546
+ case .readerSoftwareUpdateFailedBatteryLow:
547
alerts.updatingFailedLowBattery(
548
from: from,
549
batteryLevel: batteryLevel,
550
close: {
551
self.state = .searching
552
553
)
- } else {
554
+ default:
555
alerts.updatingFailed(
556
557
tryAgain: nil,
0 commit comments