diff options
author | Xiangtian Dai <xiangtian@google.com> | 2017-09-21 11:25:32 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-21 11:25:32 -0700 |
commit | 64462179c34df4606b62c7943818c1e8ace9a81f (patch) | |
tree | 00fe6824561105bdeb2f1b179e8202b5cff05c6c /Example | |
parent | 2c4233cfe14af72d420658068ed1b3f08906c478 (diff) |
Fixes a threading issue when calling back with an error for phone number auth. (#298)
Also changes the sample app to be able to test this case.
Diffstat (limited to 'Example')
-rw-r--r-- | Example/Auth/Sample/MainViewController.m | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Example/Auth/Sample/MainViewController.m b/Example/Auth/Sample/MainViewController.m index 8d87c27..2782f21 100644 --- a/Example/Auth/Sample/MainViewController.m +++ b/Example/Auth/Sample/MainViewController.m @@ -2476,7 +2476,7 @@ static NSDictionary<NSString *, NSString *> *parseURL(NSString *urlString) { [self showTextInputPromptWithMessage:title keyboardType:UIKeyboardTypePhonePad completionBlock:^(BOOL userPressedOK, NSString *_Nullable phoneNumber) { - if (!userPressedOK || !phoneNumber.length) { + if (!userPressedOK) { return; } completion(phoneNumber); |