فهرست منبع

Presets can only be added when all macro-nutrients are not 0 #167

Raphael 1 سال پیش
والد
کامیت
cbfbb521ee
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      FreeAPS/Sources/Modules/Treatments/View/MealPreset/MealPresetView.swift

+ 1 - 1
FreeAPS/Sources/Modules/Treatments/View/MealPreset/MealPresetView.swift

@@ -177,7 +177,7 @@ struct MealPresetView: View {
     }
 
     private var noPresetChosen: Bool {
-        state.selection == nil || carbs == 0 || (state.useFPUconversion && (fat == 0 || protein == 0))
+        state.selection == nil || carbs == 0 // || (state.useFPUconversion && (fat == 0 || protein == 0))
     }
 
     @ViewBuilder private func dishInfos() -> some View {