From 0eae4af7d68354d1ba7bff49f752bf4302a383e2 Mon Sep 17 00:00:00 2001 From: "Christopher C. Wells" Date: Wed, 27 Jan 2021 08:39:38 -0800 Subject: [PATCH] Correct "serving" unit value check --- app/Support/Nutrients.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Support/Nutrients.php b/app/Support/Nutrients.php index 9996ed5..2a26e15 100644 --- a/app/Support/Nutrients.php +++ b/app/Support/Nutrients.php @@ -26,7 +26,7 @@ class Nutrients if ($fromUnit === 'oz') { return $amount * 28.349523125 / $food->serving_weight; } - elseif ($fromUnit === 'servings') { + elseif ($fromUnit === 'serving') { return $amount; }