Skip to content

Commit

Permalink
Fix not detecting fields empty in register user
Browse files Browse the repository at this point in the history
  • Loading branch information
duemunk committed Dec 8, 2014
1 parent 18e3a17 commit c6497e7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions BeMyEyes/Source/Controllers/BMESignUpViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -118,10 +118,10 @@ - (BOOL)isInformationValid {
NSString *password = [self.passwordTextField.text stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceAndNewlineCharacterSet]];
NSString *firstName = [self.firstNameTextField.text stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceAndNewlineCharacterSet]];
NSString *lastName = [self.lastNameTextField.text stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceAndNewlineCharacterSet]];
BOOL isFirstNameEmpty = firstName == 0;
BOOL isLastNameEmpty = lastName == 0;
BOOL isEmailEmpty = email == 0;
BOOL isPasswordEmpty = email == 0;
BOOL isFirstNameEmpty = firstName.length == 0;
BOOL isLastNameEmpty = lastName.length == 0;
BOOL isEmailEmpty = email.length == 0;
BOOL isPasswordEmpty = email.length == 0;

if (isFirstNameEmpty || isLastNameEmpty || isEmailEmpty || isPasswordEmpty) {
if (isFirstNameEmpty) {
Expand Down

0 comments on commit c6497e7

Please sign in to comment.