Skip to content

Commit 730d19a

Browse files
committed
feat: added comments
1 parent ee7c6d8 commit 730d19a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

WooCommerce/Classes/ViewRelated/Coupons/Add and Edit Coupons/AddEditCouponViewModel.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ final class AddEditCouponViewModel: ObservableObject {
2222
}
2323
}
2424

25+
/// Text representing the label of the amount field, localized based on discount type.
26+
///
2527
var amountText: String {
2628
switch discountType {
2729
case .percent:
@@ -31,6 +33,8 @@ final class AddEditCouponViewModel: ObservableObject {
3133
}
3234
}
3335

36+
/// Text representing the label of the amount textfield subtitle, localized based on discount type.
37+
///
3438
var amountSubtitleText: String {
3539
switch discountType {
3640
case .percent:

0 commit comments

Comments
 (0)