Skip to content

Commit 3fef9f1

Browse files
committed
Fixed name change for menu item
1 parent 144cb42 commit 3fef9f1

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

client/src/pages/manager/ChangeIngredient.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ It uses the current values of id, price, and name to update the corresponding va
8080
console.log("/changeMenuPrice/"+idMenu+"/"+price);
8181
const response_quantity = await fetch(`${HOST}/changeMenuPrice/${idMenu}/${price}`);
8282
}
83-
if(name !== '') {
83+
if(nameMenu !== '') {
8484
console.log("/changeMenuName/"+idMenu+"/"+nameMenu);
8585
const response_name = await fetch(`${HOST}/changeMenuName/${idMenu}/${nameMenu}`);
8686
}

package-lock.json

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)