Merge pull request #750 from omer88/fix_short_link_crash
Fix short link crash
This commit is contained in:
commit
d73928432d
|
@ -161,9 +161,11 @@ RCT_EXPORT_METHOD(createShortDynamicLink: (NSDictionary *) metadata resolver:(RC
|
||||||
NSLog(@"create short dynamic link failure %@", [error localizedDescription]);
|
NSLog(@"create short dynamic link failure %@", [error localizedDescription]);
|
||||||
reject(@"links/failure", @"Failed to create Short Dynamic Link", error);
|
reject(@"links/failure", @"Failed to create Short Dynamic Link", error);
|
||||||
}
|
}
|
||||||
NSURL *shortLink = shortURL;
|
else {
|
||||||
NSLog(@"created short dynamic link: %@", shortLink.absoluteString);
|
NSURL *shortLink = shortURL;
|
||||||
resolve(shortLink.absoluteString);
|
NSLog(@"created short dynamic link: %@", shortLink.absoluteString);
|
||||||
|
resolve(shortLink.absoluteString);
|
||||||
|
}
|
||||||
}];
|
}];
|
||||||
}
|
}
|
||||||
@catch(NSException * e) {
|
@catch(NSException * e) {
|
||||||
|
|
Loading…
Reference in New Issue