diff --git a/RCTAppleHealthKit/RCTAppleHealthKit+Methods_Body.m b/RCTAppleHealthKit/RCTAppleHealthKit+Methods_Body.m index e8520d398af8af006b95db77efbd826247227d5f..7cef81f32a81107d3302e948be534dee47c97e09 100644 --- a/RCTAppleHealthKit/RCTAppleHealthKit+Methods_Body.m +++ b/RCTAppleHealthKit/RCTAppleHealthKit+Methods_Body.m @@ -39,7 +39,8 @@ - (void)body_saveWeight:(NSDictionary *)input callback:(RCTResponseSenderBlock)callback { - double weight= [[input objectForKey:@"weight"] doubleValue]; +// double weight= [[input objectForKey:@"weight"] doubleValue]; + double weight = [RCTAppleHealthKit doubleValueFromOptions:input]; NSDate *sampleDate = [RCTAppleHealthKit dateFromOptionsDefaultNow:input]; HKUnit *unit = [RCTAppleHealthKit hkUnitFromOptions:input];