From df3d3a5ea2a249494db390f9657083b9c83f1e0a Mon Sep 17 00:00:00 2001 From: Tben Date: Tue, 30 Jan 2024 04:29:07 +0100 Subject: [PATCH] update form --- functions/frontend/submitContactForm.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/functions/frontend/submitContactForm.ts b/functions/frontend/submitContactForm.ts index f9b2e24..c52babc 100644 --- a/functions/frontend/submitContactForm.ts +++ b/functions/frontend/submitContactForm.ts @@ -42,7 +42,11 @@ export default async function submitContactForm( } setLoading(false); - } catch (error) { - console.log("Form submission failed. Please try again in a minute."); + } catch (error: any) { + console.log( + "Form submission failed. Please try again in a minute.", + error.message + ); + window.alert("Form submission failed. Please try again in a minute."); } }