Преглед изворни кода

fix other bugs with actual Date removal

- remove all actualDate for Carbs used in the app.

(cherry picked from commit d24b7f11eb6f27453527e1c704882153747067c9)
Pierre L пре 2 година
родитељ
комит
ce99646d78
1 измењених фајлова са 7 додато и 1 уклоњено
  1. 7 1
      FreeAPS/Sources/Modules/DataTable/DataTableStateModel.swift

+ 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
+                            )
                         }
                     }