Skip to content

Commit e6bc50b

Browse files
committed
Fix typo and remove uneeded code
1 parent d533657 commit e6bc50b

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

WooCommerce/Classes/ViewRelated/Orders/Simple Payments/Amount/SimplePaymentsAmount.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,6 @@ struct SimplePaymentsAmount: View {
139139
dismiss()
140140
viewModel.userDidCancelFlow()
141141
})
142-
.disabled(viewModel.disableViewActions)
143142
}
144143
}
145144
.disabled(viewModel.disableViewActions)

WooCommerce/Classes/ViewRelated/Orders/Simple Payments/Amount/SimplePaymentsAmountViewModel.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ final class SimplePaymentsAmountViewModel: ObservableObject {
3535
///
3636
var onOrderCreated: (Order) -> Void = { _ in }
3737

38-
/// Returns true when amount is a valid number bigger than .zero.
38+
/// Returns true when the amount is not a positive number.
3939
///
4040
var shouldDisableDoneButton: Bool {
4141
let decimalAmount = (currencyFormatter.convertToDecimal(from: amount) ?? .zero) as Decimal

0 commit comments

Comments
 (0)