Skip to content

Commit

Permalink
fix(warnings): fix browser warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Todmy committed Sep 21, 2023
1 parent 3d3da61 commit cb4b902
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 @@ -4,7 +4,7 @@ import voting from '@snapshot-labs/snapshot.js/src/voting';
const props = defineProps<{
proposal: Proposal;
modelValue: Choice;
modelValue: Choice | null;
}>();
const emit = defineEmits(['update:modelValue', 'clickVote']);
Expand All @@ -19,7 +19,7 @@ const selectedChoices = computed(() => {
if (typeof props.modelValue === 'object' && props.modelValue !== null)
return Object.keys(props.modelValue).length;
return props.modelValue;
});
}) as ComputedRef<number>;
const validatedUserChoice = computed(() => {
if (!userVote.value?.choice) return null;
Expand Down

0 comments on commit cb4b902

Please sign in to comment.