Skip to content

Commit

Permalink
fix: fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
wa0x6e committed Nov 4, 2024
1 parent 97cc11f commit 567e4bf
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions apps/ui/src/views/Proposal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,11 @@ const {
} = useVotingPower();
const { setTitle } = useTitle();
const { web3 } = useWeb3();
const { modalAccountOpen, modalOpen } = useModal();
const { modalAccountOpen } = useModal();
const termStore = useTermStore();
const modalOpenVote = ref(false);
const modalOpenTerm = ref(false);
const selectedChoice = ref<Choice | null>(null);
const { votes } = useAccount();
const editMode = ref(false);
Expand Down Expand Up @@ -65,11 +66,8 @@ async function handleVoteClick(choice: Choice) {
selectedChoice.value = choice;
if (
props.space.additionalRawData?.terms &&
!termStore.isAccepted(props.space)
) {
modalOpen.value = true;
if (props.space.terms && !termStore.isAccepted(props.space)) {
modalOpenTerm.value = true;
return;
}
Expand Down Expand Up @@ -361,10 +359,10 @@ watchEffect(() => {
</template>
<teleport to="#modal">
<ModalTerms
v-if="space.additionalRawData?.terms"
:open="modalOpen"
v-if="space.terms"
:open="modalOpenTerm"
:space="space"
@close="modalOpen = false"
@close="modalOpenTerm = false"
@accept="handleAcceptTerms"
/>
<ModalVote
Expand Down

0 comments on commit 567e4bf

Please sign in to comment.