From 1bbe3dbb61c71d5189c8b81fd5c76d17fa709306 Mon Sep 17 00:00:00 2001 From: Shuveksha Tuladhar Date: Wed, 9 Oct 2024 16:37:17 -0700 Subject: [PATCH] Insert ListName dynamically to toast notifications --- src/views/CreateList.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/CreateList.jsx b/src/views/CreateList.jsx index 9e05628..359008e 100644 --- a/src/views/CreateList.jsx +++ b/src/views/CreateList.jsx @@ -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'); }