From 3ecddffc34e7631e744a943fa7865ec9dd58f409 Mon Sep 17 00:00:00 2001 From: Thomas Hintz Date: Sun, 6 Oct 2024 22:31:34 -0700 Subject: [PATCH] Fixing contact page. --- src/app/(main)/contact-us/page.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/(main)/contact-us/page.jsx b/src/app/(main)/contact-us/page.jsx index 2d7063e..7db899f 100644 --- a/src/app/(main)/contact-us/page.jsx +++ b/src/app/(main)/contact-us/page.jsx @@ -44,7 +44,7 @@ export default async function Page({ searchParams }) { }), }); redirect('/contact-success') - } else if (!validHostName) { + } else if (valid && !validHostName) { redirect('/contact-success') }