Skip to content

Commit

Permalink
fix:Remove testing console logs
Browse files Browse the repository at this point in the history
  • Loading branch information
marshjaja committed Aug 22, 2024
1 parent 06b5910 commit 6686de0
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/views/ManageList.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,16 @@ export function ManageList({ listPath }) {
});

const handleSubmit = async (event) => {
console.log(formData, 'inside submit');
try {
event.preventDefault();
await addItem(listPath, formData);
alert(`${formData.itemName} was added to the list successfully`);
} catch (error) {
console.error('error', error);
alert(`There was a problem adding ${formData.itemName} to the list`);
}
};

const handleChange = (event) => {
console.log(formData);
let { name, value } = event.target;
setFormData((prevFormData) => ({ ...prevFormData, [name]: value }));
};
Expand Down

0 comments on commit 6686de0

Please sign in to comment.