Skip to content
Snippets Groups Projects
Commit 12904e22 authored by HSoreide's avatar HSoreide
Browse files

Add check for Apply button being present

parent 54ffa627
No related branches found
No related tags found
2 merge requests!42Hs frontend recipes,!41Hs frontend recipes
Pipeline #216574 passed
......@@ -73,7 +73,7 @@ public class SuggestRecipesController implements Initializable {
Optional<ButtonType> clickedButton = dialog.showAndWait();
if (clickedButton.get() == ButtonType.APPLY) {
if (clickedButton.isPresent() && clickedButton.get() == ButtonType.APPLY) {
// Refresh ingredientsAtHand.
ingredientsAtHand = FileHandler.readIngredientsAtHand("Fridge");
//TODO: Duplicate code and assertion.
......
# Enkel pastasalat
# Simple Pasta Salad
- PASTA | 300 | GR
- OLIVE_OIL | 2 | TBS
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment