Wizard: (typo) never use == for NSNumber comparaison, it will compare pointers and this is actually broken on iOS 8. Instead use isEqual method

This commit is contained in:
Gautier Pelloux-Prayer 2015-09-07 17:11:03 +02:00
parent a76f80c7a0
commit 2030dbb15c

View file

@ -961,7 +961,7 @@ static UICompositeViewDescription *compositeDescription = nil;
[self createAccount:identity password:password email:email];
}
} else if ([[request method] isEqualToString:@"create_account_with_useragent"]) {
if ([response.value isEqualToNumber:[NSNumber numberWithInt:0]]) {
if ([response.object isEqualToNumber:[NSNumber numberWithInt:0]]) {
NSString *username = [WizardViewController findTextField:ViewElement_Username view:contentView].text;
NSString *password = [WizardViewController findTextField:ViewElement_Password view:contentView].text;
[self changeView:validateAccountView back:FALSE animation:TRUE];