File tree Expand file tree Collapse file tree 1 file changed +12
-10
lines changed Expand file tree Collapse file tree 1 file changed +12
-10
lines changed Original file line number Diff line number Diff line change @@ -75,16 +75,18 @@ + (BOOL)requiresMainQueueSetup
75
75
void (^completionHandler)(NSURL * _Nullable, NSError *_Nullable) = ^(NSURL * _Nullable callbackURL, NSError * _Nullable error) {
76
76
__strong typeof (weakSelf) strongSelf = weakSelf;
77
77
if (strongSelf) {
78
- if (!error) {
79
- NSString *url = callbackURL.absoluteString ;
80
- redirectResolve (@{
81
- @" type" : @" success" ,
82
- @" url" : url,
83
- });
84
- } else {
85
- redirectResolve (@{
86
- @" type" : @" cancel" ,
87
- });
78
+ if (redirectResolve) {
79
+ if (!error) {
80
+ NSString *url = callbackURL.absoluteString ;
81
+ redirectResolve (@{
82
+ @" type" : @" success" ,
83
+ @" url" : url,
84
+ });
85
+ } else {
86
+ redirectResolve (@{
87
+ @" type" : @" cancel" ,
88
+ });
89
+ }
88
90
}
89
91
[strongSelf flowDidFinish ];
90
92
}
You can’t perform that action at this time.
0 commit comments