diff --git a/RCTAppleHealthKit/RCTAppleHealthKit+Queries.m b/RCTAppleHealthKit/RCTAppleHealthKit+Queries.m index 2e838fedbb7cfad1a2bfb1cb587443f2fe29947d..504dcbf203e05cde09d95f3771b4c2c30bad6740 100644 --- a/RCTAppleHealthKit/RCTAppleHealthKit+Queries.m +++ b/RCTAppleHealthKit/RCTAppleHealthKit+Queries.m @@ -77,7 +77,7 @@ for (HKQuantitySample *sample in results) { HKQuantity *quantity = sample.quantity; - double value = [quantity doubleValueForUnit:unit]; + int value = round([quantity doubleValueForUnit:unit]); int startDateTimestamp = [RCTAppleHealthKit buildTimestampFromDate:sample.startDate]; int endDateTimestamp = [RCTAppleHealthKit buildTimestampFromDate:sample.endDate];