From 281adb8a4454c1688635f0a489c6cd37f7f153ab Mon Sep 17 00:00:00 2001 From: Tben <52448020+BenjaminToby@users.noreply.github.com> Date: Thu, 6 Jan 2022 09:14:36 +0100 Subject: [PATCH] add mailing system --- functions/frontend/submitContactForm.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/functions/frontend/submitContactForm.js b/functions/frontend/submitContactForm.js index 65b0d58..d4799e5 100644 --- a/functions/frontend/submitContactForm.js +++ b/functions/frontend/submitContactForm.js @@ -25,6 +25,9 @@ export default async function submitContactForm(e, setSuccess) { if (data.msg === "Success") { setSuccess("Success"); + setTimeout(() => { + window.location.reload(); + }, 1000); } else { setSuccess("Failed"); }