diff --git a/frontend/src/components/NewProposalForm.tsx b/frontend/src/components/NewProposalForm.tsx index c18a4a93..cb034ab5 100644 --- a/frontend/src/components/NewProposalForm.tsx +++ b/frontend/src/components/NewProposalForm.tsx @@ -26,6 +26,7 @@ export default function NewProposalForm({ const calls = useMemo(() => { if (!selectedType) return []; const typeIndex = proposalIds[selectedType]; + if(typeIndex === undefined) { return []} return [{ contractAddress: CONTRACT_ADDR, entrypoint: "submit_proposal",