refactor
This commit is contained in:
1 parent
d222604fcf
commit
b2badea855
1 file changed
+2
-2
@@ -49,8 +49,8 @@ export function createEditItemForm(currentName, currentAmount) {
|
||||
|
||||
export function editItem(shoppingItemElement, formElement, formData) {
|
||||
|
||||
let newName = formData.newItemName;
|
||||
let newAmount = formData.newItemAmount;
|
||||
let newName = formData.itemName;
|
||||
let newAmount = formData.itemAmount;
|
||||
shoppingItemElement.setAttribute("item-name", newName);
|
||||
shoppingItemElement.setAttribute("item-amount", newAmount);
|
||||
|
||||
|
||||
Reference in new issue
Block a user