From b5a820c74ddda2c61a287469d7be83d81c4eb30c Mon Sep 17 00:00:00 2001 From: 0xMosas Date: Thu, 26 Mar 2026 10:35:13 +0100 Subject: [PATCH] fix(form): remove unused vote threshold field The vote threshold field was rendered but never sent to the contract. The smart contract doesn't support per-proposal thresholds. Removed to avoid user confusion about non-functional UI elements. --- frontend/components/CreateProposalForm.tsx | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/frontend/components/CreateProposalForm.tsx b/frontend/components/CreateProposalForm.tsx index cba9ed0d..bf3bf1b7 100644 --- a/frontend/components/CreateProposalForm.tsx +++ b/frontend/components/CreateProposalForm.tsx @@ -28,7 +28,6 @@ export default function CreateProposalForm({ userAddress }: CreateProposalFormPr const [description, setDescription] = useState(''); const [amount, setAmount] = useState(''); const [category, setCategory] = useState('development'); - const [voteThreshold, setVoteThreshold] = useState('10'); const [amountError, setAmountError] = useState(''); const [error, setError] = useState(''); const [success, setSuccess] = useState(''); @@ -247,26 +246,6 @@ export default function CreateProposalForm({ userAddress }: CreateProposalFormPr - {/* Vote Threshold */} -
- - setVoteThreshold(e.target.value)} - min="1" - placeholder="10" - className="w-full px-4 py-3 bg-white/10 border border-white/20 rounded-lg text-white placeholder-purple-300/50 focus:outline-none focus:ring-2 focus:ring-purple-400 focus:border-transparent" - disabled={isLoading} - /> -

- Minimum total votes required for execution -

-
- {/* Error Message */} {error && (