Skip to content

Commit

Permalink
Fix initial state so CI works (#3549)
Browse files Browse the repository at this point in the history
  • Loading branch information
motechFR authored Jan 30, 2024
1 parent 2d0f105 commit 4bc74c1
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,9 @@ const StyledVoteSettings = styled.div`

export function VoteSettings({ readOnly, value, onChange }: CreateVoteModalProps) {
const [passThreshold, setPassThreshold] = useState<number>(value?.threshold || 50);
// Default values for approval type vote
const [voteType, setVoteType] = useState<VoteType>(value?.type ?? VoteType.Approval);
const [options, setOptions] = useState<string[]>(value?.options ?? []);
const [options, setOptions] = useState<string[]>(value?.options ?? ['Yes', 'No', 'Abstain']);
const [maxChoices, setMaxChoices] = useState(value?.maxChoices ?? 1);
const [durationDays, setDurationDays] = useState(value?.durationDays ?? 5);
const [publishToSnapshot, setPublishToSnapshot] = useState(value?.publishToSnapshot ?? false);
Expand Down

0 comments on commit 4bc74c1

Please sign in to comment.