Skip to content

Commit 8f442d4

Browse files
committed
Make allowedEmailsViewModel computed variable on CouponRestrictionsViewModel
1 parent 0b2ae00 commit 8f442d4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

WooCommerce/Classes/ViewRelated/Coupons/Add and Edit Coupons/UsageDetails/CouponRestrictionsViewModel.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,11 +75,11 @@ final class CouponRestrictionsViewModel: ObservableObject {
7575
}
7676
}()
7777

78-
lazy var allowedEmailsViewModel = {
78+
var allowedEmailsViewModel: CouponAllowedEmailsViewModel {
7979
CouponAllowedEmailsViewModel(allowedEmails: allowedEmails) { [weak self] updatedEmails in
8080
self?.allowedEmails = updatedEmails
8181
}
82-
}()
82+
}
8383

8484
private let siteID: Int64
8585
private let stores: StoresManager

0 commit comments

Comments
 (0)