Correct "serving" unit value check

This commit is contained in:
Christopher C. Wells 2021-01-27 08:39:38 -08:00
parent 9cae200c0f
commit 0eae4af7d6
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@ class Nutrients
if ($fromUnit === 'oz') { if ($fromUnit === 'oz') {
return $amount * 28.349523125 / $food->serving_weight; return $amount * 28.349523125 / $food->serving_weight;
} }
elseif ($fromUnit === 'servings') { elseif ($fromUnit === 'serving') {
return $amount; return $amount;
} }