Default conviction to 1x (democracy & referenda) (#8715)

This commit is contained in:
Jaco 2023-01-06 22:22:31 +02:00 committed by GitHub
parent bcdfc42b92
commit 0d918762b8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -22,7 +22,7 @@ function Voting ({ proposal, referendumId }: Props): React.ReactElement<Props> |
const { hasAccounts } = useAccounts();
const [accountId, setAccountId] = useState<string | null>(null);
const [balance, setBalance] = useState<BN | undefined>();
const [conviction, setConviction] = useState(0);
const [conviction, setConviction] = useState(1);
const [isVotingOpen, toggleVoting] = useToggle();
const isCurrentVote = useMemo(

View File

@ -17,7 +17,7 @@ interface Props extends VoteTypeProps {
function VoteStandard ({ accountId, id, isAye, onChange, voteLockingPeriod }: Props): React.ReactElement<Props> {
const { t } = useTranslation();
const [balance, setBalance] = useState<BN | undefined>();
const [conviction, setConviction] = useState(0);
const [conviction, setConviction] = useState(1);
useEffect((): void => {
onChange([id, {