From 2f20ab5c3a5f9bcfc3ba781ec10192032d02c6d7 Mon Sep 17 00:00:00 2001 From: Diego Cohen Date: Wed, 18 Dec 2024 16:43:26 -0500 Subject: [PATCH] Change type declaration in useState --- pages/hold/request/[id]/edd.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pages/hold/request/[id]/edd.tsx b/pages/hold/request/[id]/edd.tsx index 059dffae..d6cc4f6b 100644 --- a/pages/hold/request/[id]/edd.tsx +++ b/pages/hold/request/[id]/edd.tsx @@ -73,12 +73,12 @@ export default function EDDRequestPage({ defaultEligibilityStatus ) - const [eddFormState, setEddFormState] = useState({ + const [eddFormState, setEddFormState] = useState({ ...initialEDDFormState, emailAddress: patronEmail, patronId, source: item.source, - } as EDDRequestParams) + }) const [formPosting, setFormPosting] = useState(false) const bannerContainerRef = useRef()