Skip to content

Commit

Permalink
make it easier to save a Favorite Food from Carb Entry screen (#2136)
Browse files Browse the repository at this point in the history
  • Loading branch information
marionbarker authored Apr 24, 2024
1 parent 7179901 commit d5065b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Loop/View Models/CarbEntryViewModel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ final class CarbEntryViewModel: ObservableObject {

var saveFavoriteFoodButtonDisabled: Bool {
get {
if let carbsQuantity, 0...maxCarbEntryQuantity.doubleValue(for: preferredCarbUnit) ~= carbsQuantity, foodType != "", selectedFavoriteFoodIndex == -1 {
if let carbsQuantity, 0...maxCarbEntryQuantity.doubleValue(for: preferredCarbUnit) ~= carbsQuantity, selectedFavoriteFoodIndex == -1 {
return false
}
return true
Expand Down

0 comments on commit d5065b2

Please sign in to comment.