diff --git a/Sources/VitalHealthKit/HealthKit/HealthKitReads.swift b/Sources/VitalHealthKit/HealthKit/HealthKitReads.swift index 0378831e..b0e8895a 100644 --- a/Sources/VitalHealthKit/HealthKit/HealthKitReads.swift +++ b/Sources/VitalHealthKit/HealthKit/HealthKitReads.swift @@ -398,7 +398,7 @@ func handleBody( bodyFatPercentage = bodyFatPercentage.map { var copy = $0 - copy.value = $0.value * 100 + copy.value = $0.value return copy } diff --git a/Sources/VitalHealthKit/HealthKit/Models/CoreModels+Extensions.swift b/Sources/VitalHealthKit/HealthKit/Models/CoreModels+Extensions.swift index 589d23bf..ebc0caf5 100644 --- a/Sources/VitalHealthKit/HealthKit/Models/CoreModels+Extensions.swift +++ b/Sources/VitalHealthKit/HealthKit/Models/CoreModels+Extensions.swift @@ -152,7 +152,7 @@ extension QuantitySample { self.init( id: value.uuid.uuidString, - value: value.quantity.doubleValue(for: sample.sampleType.toHealthKitUnits), + value: doubleValue, startDate: sample.startDate, endDate: sample.endDate, sourceBundle: value.sourceRevision.source.bundleIdentifier,