Skip to content

Commit d5065b2

Browse files
authored
make it easier to save a Favorite Food from Carb Entry screen (#2136)
1 parent 7179901 commit d5065b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Loop/View Models/CarbEntryViewModel.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ final class CarbEntryViewModel: ObservableObject {
140140

141141
var saveFavoriteFoodButtonDisabled: Bool {
142142
get {
143-
if let carbsQuantity, 0...maxCarbEntryQuantity.doubleValue(for: preferredCarbUnit) ~= carbsQuantity, foodType != "", selectedFavoriteFoodIndex == -1 {
143+
if let carbsQuantity, 0...maxCarbEntryQuantity.doubleValue(for: preferredCarbUnit) ~= carbsQuantity, selectedFavoriteFoodIndex == -1 {
144144
return false
145145
}
146146
return true

0 commit comments

Comments
 (0)