Skip to content

Commit

Permalink
Insert ListName dynamically to toast notifications
Browse files Browse the repository at this point in the history
  • Loading branch information
shuveksha-tuladhar committed Oct 9, 2024
1 parent 060e6c0 commit 1bbe3db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/views/CreateList.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ export function CreateList({
if (listName) {
try {
const newListPath = await createList(userId, userEmail, listName);
notify('List is sucessfully created', 'success');
setListPath(newListPath);
setIsCreateListModalOpen(false);
notify(`${listName} is sucessfully created`, 'success');
} catch {
notify('There was an error adding your list', 'error');
}
Expand Down

0 comments on commit 1bbe3db

Please sign in to comment.