Procházet zdrojové kódy

fix other bugs with actual Date removal

- remove all actualDate for Carbs used in the app.

(cherry picked from commit d24b7f11eb6f27453527e1c704882153747067c9)
Pierre L před 2 roky
rodič
revize
ce99646d78

+ 7 - 1
FreeAPS/Sources/Modules/DataTable/DataTableStateModel.swift

@@ -44,7 +44,13 @@ extension DataTable {
                                 note: $0.note
                             )
                         } else {
-                            return Treatment(units: units, type: .carbs, date: $0.createdAt, amount: $0.carbs, note: $0.note)
+                            return Treatment(
+                                units: units,
+                                type: .carbs,
+                                date: $0.createdAt,
+                                amount: $0.carbs,
+                                note: $0.note
+                            )
                         }
                     }