Skip to content

Commit

Permalink
fix bug on delete list
Browse files Browse the repository at this point in the history
  • Loading branch information
ocsiddisco committed May 3, 2024
1 parent 1f8d279 commit 70e1d9a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/DeleteList.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};

Expand Down

0 comments on commit 70e1d9a

Please sign in to comment.