Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion RCTAppleHealthKit/RCTAppleHealthKit+Methods_Dietary.m
Original file line number Diff line number Diff line change
Expand Up @@ -549,7 +549,7 @@ - (void)getWater:(NSDictionary *)input callback:(RCTResponseSenderBlock)callback
includeManuallyAdded:includeManuallyAdded
day:date
completion:^(double value, NSDate *startDate, NSDate *endDate, NSError *error) {
if (!value && value != 0) {
if ((!value && value != 0) || error != nil) {
callback(@[RCTJSErrorFromNSError(error)]);
return;
}
Expand Down