File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -394,9 +394,13 @@ - (BranchUniversalObject *)findUniversalObjectWithIdent:(NSString *)ident reject
394394 resolver:(RCTPromiseResolveBlock)resolve
395395 rejecter:(__unused RCTPromiseRejectBlock)reject
396396 ) {
397- [self .class.branch lastAttributedTouchDataWithAttributionWindow: window.integerValue completion: ^(BranchLastAttributedTouchData *r, NSError *e){
398- // TODO: pass back the error to JS
399- resolve (r);
397+ [self .class.branch lastAttributedTouchDataWithAttributionWindow: window.integerValue completion: ^(BranchLastAttributedTouchData *data, NSError *error){
398+ if (!error) {
399+ resolve (data.lastAttributedTouchJSON );
400+ } else {
401+ reject (@" RNBranch::Error::lastAttributedTouchData failed" , error.localizedDescription , error);
402+ }
403+
400404 }];
401405}
402406
You can’t perform that action at this time.
0 commit comments