diff --git a/app/Http/Controllers/JournalEntryController.php b/app/Http/Controllers/JournalEntryController.php index 1f4046b..e0b34fb 100644 --- a/app/Http/Controllers/JournalEntryController.php +++ b/app/Http/Controllers/JournalEntryController.php @@ -187,11 +187,13 @@ class JournalEntryController extends Controller // Update summary $unit = $ingredient['unit']; if ($item instanceof Food) { - if (empty($item->serving_unit) && empty($item->serving_unit_name)) { - $unit = null; - } - elseif (!empty($item->serving_unit_name)) { - $unit = $item->serving_unit_formatted; + if ($unit === 'serving') { + if (empty($item->serving_unit) && empty($item->serving_unit_name)) { + $unit = null; + } + elseif (!empty($item->serving_unit_name)) { + $unit = $item->serving_unit_formatted; + } } } $entries[$entry_key]->summary .= (!empty($entries[$entry_key]->summary) ? ', ' : null);