Skip to content

Commit

Permalink
fix: fix invalid selected choices computation (#4785)
Browse files Browse the repository at this point in the history
  • Loading branch information
wa0x6e authored Jun 20, 2024
1 parent 97e67fa commit 72653be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/SpaceProposalVote.vue
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ const selectedChoices = computed(() => {
const validatedUserChoice = computed(() => {
if (selectedChoices.value) {
return voting[props.proposal.type].isValidChoice(
selectedChoices.value,
props.modelValue,
props.proposal.choices
)
? selectedChoices.value
? props.modelValue
: null;
}
if (!userVote.value?.choice) return null;
Expand Down

0 comments on commit 72653be

Please sign in to comment.