-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implements Indian and Chinese States/Provinces in address #278
base: master
Are you sure you want to change the base?
Implements Indian and Chinese States/Provinces in address #278
Conversation
f2baa9b
to
0dc9ecf
Compare
772ffda
to
14d38c9
Compare
1a3c765
to
deec266
Compare
Quality Gate passedIssues Measures |
@@ -52,7 +56,7 @@ - (instancetype)initWithDictionary:(NSDictionary *)dict { | |||
|
|||
@implementation JPStateList | |||
|
|||
+ (instancetype)usStateList { | |||
+ (nullable instancetype)usStatesList { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No need for nullable
in implementation (.m) files
@@ -549,12 +549,20 @@ - (void)updateBillingCountryViewModelForInput:(NSString *)input showError:(BOOL) | |||
[self updateBillingStateViewModelForInput:@"" showError:showError]; | |||
|
|||
if (country.isUSA) { | |||
stateViewModel.options = JPStateList.usStateList.states; | |||
stateViewModel.options = JPStateList.usStatesList ? JPStateList.usStatesList.states : @[]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we simply stateViewModel.options = JPStateList.usStatesList.states
?
Summary:
Demo:
demo.mov