Skip to content

Commit

Permalink
Fixes the return value of two utility apis
Browse files Browse the repository at this point in the history
  • Loading branch information
CrisTofani committed Nov 29, 2022
1 parent 76d1b23 commit 17d65af
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ios/RNZendeskChat.m
Original file line number Diff line number Diff line change
Expand Up @@ -208,15 +208,15 @@ - (void) addTicketTagFunction:(NSString *)tag
return;
}
NSNumber *ticketsCount = [NSNumber numberWithInt:[requestsWithCommentingAgents requests].count];
resolve(@[ticketsCount]);
resolve(@ticketsCount);
}];
}
RCT_EXPORT_METHOD(getTotalNewResponses:(RCTPromiseResolveBlock)resolve rejecter:(RCTPromiseRejectBlock)reject)
{
ZDKRequestProvider * provider = [ZDKRequestProvider new];
[provider getUpdatesForDeviceWithCallback:^(ZDKRequestUpdates * _Nullable requestUpdates) {
NSNumber *totalUpdates = [NSNumber numberWithInt:requestUpdates.totalUpdates];
resolve(@[totalUpdates]);
resolve(@totalUpdates);
}];
}
- (UIColor *)colorFromHexString:(NSString *)hexString {
Expand Down

0 comments on commit 17d65af

Please sign in to comment.