فهرست منبع

gray button after meal saved

Mike Plante 1 سال پیش
والد
کامیت
ae51591936
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      FreeAPS/Sources/Modules/AddCarbs/View/AddCarbsRootView.swift

+ 1 - 1
FreeAPS/Sources/Modules/AddCarbs/View/AddCarbsRootView.swift

@@ -131,7 +131,7 @@ extension AddCarbs {
                                 || (state.carbs <= 0 && state.fat <= 0 && state.protein <= 0)
                         )
                         .foregroundStyle(
-                            (state.carbs <= 0 && state.fat <= 0 && state.protein <= 0) ? .gray :
+                            mealSaved || (state.carbs <= 0 && state.fat <= 0 && state.protein <= 0) ? .gray :
                                 state.carbs > state.maxCarbs || state.fat > state.maxFat || state.protein > state
                                 .maxProtein ? .red : .blue
                         )