Skip to content

Commit

Permalink
Update src/main/java/seedu/cafectrl/data/Menu.java
Browse files Browse the repository at this point in the history
Co-authored-by: Dexter <[email protected]>
  • Loading branch information
NaychiMin and DextheChik3n authored Nov 13, 2023
1 parent 3cf0e86 commit f98139d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/seedu/cafectrl/data/Menu.java
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public Dish getDishFromName(String dishName) {
for (int i = 0; i < getSize(); i++) {
String menuDishName = getDishFromId(i).getName();
String formattedMenuDishName = menuDishName.trim();
if (formattedMenuDishName.equalsIgnoreCase(formattedDishName)){
if (formattedMenuDishName.equalsIgnoreCase(formattedDishName)) {
return getDishFromId(i);
}
}
Expand Down

0 comments on commit f98139d

Please sign in to comment.