From 1dd79387e85aefa5a8689622413db3f76ca9a601 Mon Sep 17 00:00:00 2001 From: Megha <100185149+Megha-Dev-19@users.noreply.github.com> Date: Sun, 25 Aug 2024 09:03:23 +0530 Subject: [PATCH] fix `setCancelModal` not defined (#925) --- .../widget/components/rfps/Editor.jsx | 1 + 1 file changed, 1 insertion(+) diff --git a/instances/infrastructure-committee.near/widget/components/rfps/Editor.jsx b/instances/infrastructure-committee.near/widget/components/rfps/Editor.jsx index af3cd9c51..b93673418 100644 --- a/instances/infrastructure-committee.near/widget/components/rfps/Editor.jsx +++ b/instances/infrastructure-committee.near/widget/components/rfps/Editor.jsx @@ -291,6 +291,7 @@ const [oldRfpData, setOldRfpData] = useState(null); const [timeline, setTimeline] = useState({ status: RFP_TIMELINE_STATUS.ACCEPTING_SUBMISSIONS, }); +const [isCancelModalOpen, setCancelModal] = useState(false); if (allowDraft) { draftRfpData = Storage.privateGet(draftKey);