diff --git a/src/modules/[chain]/gov/[proposal_id].vue b/src/modules/[chain]/gov/[proposal_id].vue index c3d5f4fe..8ad69f50 100644 --- a/src/modules/[chain]/gov/[proposal_id].vue +++ b/src/modules/[chain]/gov/[proposal_id].vue @@ -9,7 +9,7 @@ import { useTxDialog, } from '@/stores'; import { -PageRequest, + PageRequest, type GovProposal, type GovVote, type PaginatedProposalDeposit, @@ -17,7 +17,7 @@ PageRequest, } from '@/types'; import { ref, reactive } from 'vue'; import Countdown from '@/components/Countdown.vue'; -import PaginationBar from '@/components/PaginationBar.vue' +import PaginationBar from '@/components/PaginationBar.vue'; import { fromBech32, toHex } from '@cosmjs/encoding'; const props = defineProps(['proposal_id', 'chain']); @@ -57,8 +57,8 @@ const deposit = ref({} as PaginatedProposalDeposit); store.fetchProposalDeposits(props.proposal_id).then((x) => (deposit.value = x)); const votes = ref({} as GovVote[]); -const pageRequest = ref(new PageRequest()) -const pageResponse = ref({} as Pagination) +const pageRequest = ref(new PageRequest()); +const pageResponse = ref({} as Pagination); store.fetchProposalVotes(props.proposal_id).then((x) => { votes.value = x.votes; @@ -152,20 +152,20 @@ const processList = computed(() => { }); function showValidatorName(voter: string) { - const {data} = fromBech32(voter) - const hex = toHex(data) - const v = stakingStore.validators.find( x => toHex(fromBech32(x.operator_address).data) === hex) - return v? v.description.moniker : voter + const { data } = fromBech32(voter); + const hex = toHex(data); + const v = stakingStore.validators.find( + (x) => toHex(fromBech32(x.operator_address).data) === hex + ); + return v ? v.description.moniker : voter; } function pageload(p: number) { - pageRequest.value.setPage(p) - store - .fetchProposalVotes(props.proposal_id, pageRequest.value) - .then((x) => { - votes.value = x.votes; - pageResponse.value = x.pagination; - }); + pageRequest.value.setPage(p); + store.fetchProposalVotes(props.proposal_id, pageRequest.value).then((x) => { + votes.value = x.votes; + pageResponse.value = x.pagination; + }); } @@ -209,7 +209,9 @@ function pageload(p: number) {
-