From 567e4bff1b223b5a3d09f94e36c86a7425c774e1 Mon Sep 17 00:00:00 2001 From: Wan Qi Chen <495709+wa0x6e@users.noreply.github.com> Date: Mon, 4 Nov 2024 11:16:21 +0900 Subject: [PATCH] fix: fix types --- apps/ui/src/views/Proposal.vue | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/apps/ui/src/views/Proposal.vue b/apps/ui/src/views/Proposal.vue index f03f23c54..d0f0256ce 100644 --- a/apps/ui/src/views/Proposal.vue +++ b/apps/ui/src/views/Proposal.vue @@ -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(null); const { votes } = useAccount(); const editMode = ref(false); @@ -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; } @@ -361,10 +359,10 @@ watchEffect(() => {