Skip to content

Commit

Permalink
[rm] localstorage check
Browse files Browse the repository at this point in the history
  • Loading branch information
vignesh-gupta committed Oct 10, 2023
1 parent 8783d94 commit 5fafe29
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions app/(root)/contact/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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: '',
Expand Down

0 comments on commit 5fafe29

Please # to comment.