From 5fafe299805ef170eb575f2404841330d0db2897 Mon Sep 17 00:00:00 2001 From: Vignesh Gupta Date: Tue, 10 Oct 2023 11:57:49 +0530 Subject: [PATCH] [rm] localstorage check --- app/(root)/contact/page.tsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/(root)/contact/page.tsx b/app/(root)/contact/page.tsx index 0bf5b2f..488939b 100644 --- a/app/(root)/contact/page.tsx +++ b/app/(root)/contact/page.tsx @@ -6,9 +6,7 @@ import clsx from 'clsx'; import React, { useState } from 'react'; const ContactPage = () => { - const [isSubmitted, setIsSubmitted] = useState( - localStorage?.getItem('isSubmitted') === 'true' ? true : false - ); + const [isSubmitted, setIsSubmitted] = useState(false); const [formData, setFormData] = useState({ name: '',