diff --git a/src/app/login/Login.tsx b/src/app/login/Login.tsx index af95838a0..38e255329 100644 --- a/src/app/login/Login.tsx +++ b/src/app/login/Login.tsx @@ -63,15 +63,3 @@ export const Login = () => { ) } - -const Header = () => ( -
- Logo -
-) diff --git a/src/app/proposals/create/RemoveBuilderProposalForm.tsx b/src/app/proposals/create/RemoveBuilderProposalForm.tsx index 81db2b76a..eec0d6941 100644 --- a/src/app/proposals/create/RemoveBuilderProposalForm.tsx +++ b/src/app/proposals/create/RemoveBuilderProposalForm.tsx @@ -45,10 +45,6 @@ export const RemoveBuilderProposalForm: FC = () => { const { isLoading: isVotingPowerLoading, canCreateProposal } = useVotingPower() const { setMessage } = useAlertContext() const { onRemoveBuilderProposal, isPublishing, error } = useRemoveBuilderProposal() - if (error) { - setMessage(TX_MESSAGES.proposal.error) - console.error('🐛 Error writing to contract:', error) - } const [activeStep, setActiveStep] = useState('proposal') @@ -90,6 +86,13 @@ export const RemoveBuilderProposalForm: FC = () => { } } + useEffect(() => { + if (error) { + setMessage(TX_MESSAGES.proposal.error) + console.error('🐛 Error writing to contract:', error) + } + }, [error, setMessage]) + useEffect(() => { if (!isVotingPowerLoading && !canCreateProposal) { router.push(`/proposals/${proposalId}`)