diff --git a/code/32-finished/frontend/src/components/EventForm.js b/code/32-finished/frontend/src/components/EventForm.js index 4798c3404b..f31ca7a3e1 100644 --- a/code/32-finished/frontend/src/components/EventForm.js +++ b/code/32-finished/frontend/src/components/EventForm.js @@ -116,7 +116,7 @@ export async function action({ request, params }) { if (!response.ok) { throw json({ message: 'Could not save event.' }, { status: 500 }); } - + await new Promise((res) => setTimeout(res, 1000)); return redirect('/events'); }