Skip to content

Commit

Permalink
Update ENGAGEHF/Bluetooth/MeasurementManager.swift
Browse files Browse the repository at this point in the history
Co-authored-by: Paul Schmiedmayer <[email protected]>
  • Loading branch information
nriedman and PSchmiedmayer authored May 21, 2024
1 parent eba9648 commit 97637f3
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions ENGAGEHF/Bluetooth/MeasurementManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,7 @@ class MeasurementManager: Module, EnvironmentAccessible {
// Called by WeightScaleDevice on change of WeightMeasurement Characteristic
func loadMeasurement(_ measurement: WeightMeasurement) {
// Convert to HKQuantitySample after downloading from Firestore
let convertedMeasurement = convertToHKSample(measurement)

// Save the sample to the Measurement Manager
self.newMeasurement = convertedMeasurement
self.newMeasurement = convertToHKSample(measurement)
self.showSheet = true

logger.info("Measurement loaded into MeasurementManager: \(measurement.weight)")
Expand Down

0 comments on commit 97637f3

Please sign in to comment.