diff --git a/frontend/lib/provider/menu_provider.dart b/frontend/lib/provider/menu_provider.dart index 7c71983..c39a68a 100644 --- a/frontend/lib/provider/menu_provider.dart +++ b/frontend/lib/provider/menu_provider.dart @@ -311,6 +311,9 @@ class MenuStateNotifier extends StateNotifier { void addMenuItem() { String item = state.itemNameController.text; + if (item == '') { + return; + } String weekday = getWeekDay(state.selectedWeekdayIndex); String mealType = getMealType(state.selectedMealTypeIndex);