Skip to content

Commit

Permalink
Fix toast messages
Browse files Browse the repository at this point in the history
  • Loading branch information
Hudamabkhoot committed Sep 13, 2024
1 parent a0d1e6b commit 083c21e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/ManageListForms/AddItemForm.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@ export default function AddItemForm({ listPath, data }) {
try {
if (!match) {
await addItem(listPath, { ...formData, itemName: formattedItemName });
toast.success(`${formattedItemName} added to the list successfully`);
toast.success(`${formattedItemName} was added to your list`);
} else {
toast.error(`${formattedItemName} is already on your list`);
return;
}
} catch (error) {
toast.error(`Failed to add ${formattedItemName} to the list`);
toast.error(`Failed to add ${formattedItemName}`);
}
};

Expand Down

0 comments on commit 083c21e

Please sign in to comment.