diff --git a/client/src/main/java/client/scenes/recipe/IngredientListCell.java b/client/src/main/java/client/scenes/recipe/IngredientListCell.java index bdd60ab..6cfeaf7 100644 --- a/client/src/main/java/client/scenes/recipe/IngredientListCell.java +++ b/client/src/main/java/client/scenes/recipe/IngredientListCell.java @@ -135,7 +135,9 @@ public class IngredientListCell extends OrderedEditableListCell unitChoice) { - MenuButton ingredientSelect = new MenuButton(getLocaleString("app.prompt.select-ingredient")); + selectedIngredient.setValue(ingredient.getIngredient()); + MenuButton ingredientSelect = new MenuButton(selectedIngredient.get() == null ? + getLocaleString("app.prompt.select-ingredient") : selectedIngredient.get().getName()); HBox container = new HBox(amountInput, unitChoice, ingredientSelect); try { makeMenuItems(ingredientSelect, server.getIngredients(), Ingredient::getName, i -> {