Default conviction to 1x (democracy & referenda) (#8715)
This commit is contained in:
parent
bcdfc42b92
commit
0d918762b8
@ -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(
|
||||
|
||||
@ -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, {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user