From 0d918762b8178394a5fc02fac5193185a0f7ebc3 Mon Sep 17 00:00:00 2001 From: Jaco Date: Fri, 6 Jan 2023 22:22:31 +0200 Subject: [PATCH] Default conviction to 1x (democracy & referenda) (#8715) --- packages/page-democracy/src/Overview/Voting.tsx | 2 +- packages/page-referenda/src/Referenda/VoteStandard.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/page-democracy/src/Overview/Voting.tsx b/packages/page-democracy/src/Overview/Voting.tsx index cfc5dfa583..d6286e6f00 100644 --- a/packages/page-democracy/src/Overview/Voting.tsx +++ b/packages/page-democracy/src/Overview/Voting.tsx @@ -22,7 +22,7 @@ function Voting ({ proposal, referendumId }: Props): React.ReactElement | const { hasAccounts } = useAccounts(); const [accountId, setAccountId] = useState(null); const [balance, setBalance] = useState(); - const [conviction, setConviction] = useState(0); + const [conviction, setConviction] = useState(1); const [isVotingOpen, toggleVoting] = useToggle(); const isCurrentVote = useMemo( diff --git a/packages/page-referenda/src/Referenda/VoteStandard.tsx b/packages/page-referenda/src/Referenda/VoteStandard.tsx index eb5f7b1e89..4d110fda41 100644 --- a/packages/page-referenda/src/Referenda/VoteStandard.tsx +++ b/packages/page-referenda/src/Referenda/VoteStandard.tsx @@ -17,7 +17,7 @@ interface Props extends VoteTypeProps { function VoteStandard ({ accountId, id, isAye, onChange, voteLockingPeriod }: Props): React.ReactElement { const { t } = useTranslation(); const [balance, setBalance] = useState(); - const [conviction, setConviction] = useState(0); + const [conviction, setConviction] = useState(1); useEffect((): void => { onChange([id, {