Skip to content

Commit

Permalink
when user submits a new item the user is taken back to list
Browse files Browse the repository at this point in the history
  • Loading branch information
arandel1 committed Sep 24, 2024
1 parent 679632b commit 46b5196
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/views/ManageList.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ export function ManageList({ userId, list }) {
name: '',
frequency: '',
});
window.location.href = '/list';
})
.catch((error) => {
window.alert(`${formData.name} failed to add to your list.`);
Expand Down

0 comments on commit 46b5196

Please sign in to comment.