You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: WooCommerce/Classes/ViewRelated/Orders/Order Details/Shipping Labels/WooShipping Create Shipping Labels/WooShippingAddresses/WooShippingEditAddressView.swift
Copy file name to clipboardExpand all lines: WooCommerce/Classes/ViewRelated/Orders/Order Details/Shipping Labels/WooShipping Create Shipping Labels/WooShippingAddresses/WooShippingEditAddressViewModel.swift
+61-8Lines changed: 61 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -61,8 +61,9 @@ final class WooShippingEditAddressViewModel: ObservableObject, Identifiable {
61
61
[name, company, country, address, city, state, postalCode, email, phone]
62
62
}
63
63
64
-
/// Whether the phone number is required.
65
-
privateletphoneNumberRequired:Bool
64
+
/// The origin address country code.
65
+
/// This is used to determine whether the phone number is required when editing a destination address.
66
+
privateletoriginCountryCode:String?
66
67
67
68
/// Status of the address, based on local validation and remote verification.
68
69
varstatus:WooShippingAddressStatus{
@@ -131,7 +132,7 @@ final class WooShippingEditAddressViewModel: ObservableObject, Identifiable {
131
132
132
133
/// Whether the address is in the US.
133
134
varisUSAddress:Bool{
134
-
country.value =="US"
135
+
country.value ==Constants.usCountryCode
135
136
}
136
137
137
138
/// States of the selected country.
@@ -176,7 +177,7 @@ final class WooShippingEditAddressViewModel: ObservableObject, Identifiable {
Copy file name to clipboardExpand all lines: WooCommerce/Classes/ViewRelated/Orders/Order Details/Shipping Labels/WooShipping Create Shipping Labels/WooShippingCreateLabelsViewModel.swift
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -286,6 +286,7 @@ final class WooShippingCreateLabelsViewModel: ObservableObject {
0 commit comments