From 70e1d9a10b56521a4ce3b9b2ec134360b3542001 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9line?= <114222588+ocsiddisco@users.noreply.github.com> Date: Fri, 3 May 2024 10:15:24 +0200 Subject: [PATCH] fix bug on delete list --- src/components/DeleteList.jsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/components/DeleteList.jsx b/src/components/DeleteList.jsx index fabaa03..da481d4 100644 --- a/src/components/DeleteList.jsx +++ b/src/components/DeleteList.jsx @@ -10,6 +10,8 @@ const DeleteList = ({ user, email, listPath, listName, setListPath }) => { setSubmitted(true); deleteList(user, email, listPath, listName); setListPath(''); + setSubmitted((prevSubmitted) => !prevSubmitted); + setOpen((prevOpen) => !prevOpen); return; };