UI bug fixes (regarding recipe servings adjustment)
This commit is contained in:
@@ -68,7 +68,7 @@ class ObservableRecipeDetail: ObservableObject {
|
||||
recipeInstructions = recipeDetail.recipeInstructions
|
||||
nutrition = recipeDetail.nutrition
|
||||
|
||||
ingredientMultiplier = Double(recipeDetail.recipeYield)
|
||||
ingredientMultiplier = Double(recipeDetail.recipeYield == 0 ? 1 : recipeDetail.recipeYield)
|
||||
}
|
||||
|
||||
func toRecipeDetail() -> RecipeDetail {
|
||||
|
||||
Reference in New Issue
Block a user