Ver código fonte

Don't show fat-protein-switched banner warning if fat-protein is not enabled

Mike Plante 5 meses atrás
pai
commit
9fa0c0a410
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      LoopFollow/Remote/TRC/MealView.swift

+ 1 - 1
LoopFollow/Remote/TRC/MealView.swift

@@ -173,7 +173,7 @@ struct MealView: View {
                 selectedTime = nil
                 selectedTime = nil
                 isScheduling = false
                 isScheduling = false
 
 
-                if !Storage.shared.hasSeenFatProteinOrderChange.value {
+                if !Storage.shared.hasSeenFatProteinOrderChange.value && Storage.shared.mealWithFatProtein.value {
                     showFatProteinOrderBanner = true
                     showFatProteinOrderBanner = true
                 }
                 }
             }
             }