Explorar o código

fix doubled carb entries

polscm32 aka Marvout hai 1 ano
pai
achega
fde69043d4
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      Trio/Sources/Services/WatchManager/AppleWatchManager.swift

+ 1 - 0
Trio/Sources/Services/WatchManager/AppleWatchManager.swift

@@ -417,6 +417,7 @@ final class BaseWatchManager: NSObject, WCSessionDelegate, Injectable, WatchMana
                 let carbs = CarbEntryStored(context: context)
                 carbs.carbs = Double(truncating: amount as NSNumber)
                 carbs.date = date
+                carbs.id = UUID()
 
                 // TODO: add FPU