Skip to content

Commit 4b03746

Browse files
committed
Rewrite comparison
1 parent bd0428b commit 4b03746

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

WooCommerce/Classes/ViewModels/CardPresentPayments/PaymentCaptureOrchestrator.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ private extension PaymentCaptureOrchestrator {
277277
return false
278278
}
279279

280-
return orderTotal.compare(Constants.minimumAmount) == .orderedDescending
280+
return orderTotal as Decimal >= Constants.minimumAmount as Decimal
281281
}
282282

283283
func minimumAmountError(order: Order, minimumAmount: NSDecimalNumber) -> Error {

0 commit comments

Comments
 (0)