Calculate Recipe ingredient nutrients from serving amount

This commit is contained in:
Christopher C. Wells 2021-02-07 19:30:33 -08:00
parent aa84819df5
commit c909d3b535
1 changed files with 1 additions and 1 deletions

View File

@ -146,7 +146,7 @@ final class IngredientAmount extends Model
$this->amount,
$this->unit
),
Recipe::class => $this->ingredient->{"{$method}Total"}(),
Recipe::class => $this->ingredient->{"{$method}PerServing"}() * $this->amount,
default => 0
};
}