Skip to content

Commit

Permalink
Fix crash when selecting Treasury
Browse files Browse the repository at this point in the history
  • Loading branch information
tensojka committed Sep 20, 2024
1 parent a04dbf7 commit 721a392
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions frontend/src/components/NewProposalForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 721a392

Please sign in to comment.