Skip to content

Commit

Permalink
fix: Unavailable proposal error
Browse files Browse the repository at this point in the history
  • Loading branch information
clockworkgr committed Oct 2, 2024
1 parent 0ba3b42 commit bb76c59
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/views/ProposalView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const { getProposal, getBlockHeightAsync } = useChainData();
const route = useRoute();
const proposal = getProposal(parseInt(route.params.id as string));
const height = ref<number | null>(null);
const height = ref<number>(0);
watch(proposal, async (newProp, _oldProp) => {
if (
Expand Down Expand Up @@ -45,11 +45,8 @@ watch(proposal, async (newProp, _oldProp) => {

<template>
<div>
<ProposalWrapper
v-if="proposal?.proposal[0].id && height !== null"
:proposal-id="parseInt(route.params.id as string)"
:height="height"
/>
<ProposalWrapper v-if="proposal?.proposal[0].id && height !== null"

Check failure on line 48 in src/views/ProposalView.vue

View workflow job for this annotation

GitHub Actions / Linting

Insert `⏎·····`

Check warning on line 48 in src/views/ProposalView.vue

View workflow job for this annotation

GitHub Actions / Linting

Expected a linebreak before this attribute
:proposal-id="parseInt(route.params.id as string)" :height="height" />

Check failure on line 49 in src/views/ProposalView.vue

View workflow job for this annotation

GitHub Actions / Linting

Replace `·:height="height"` with `⏎······:height="height"⏎···`
<div v-else class="text-400 text-grey-50 text-center mt-12 font-medium">
{{ $t("proposalview.labels.unavailable") }}
</div>
Expand Down

0 comments on commit bb76c59

Please sign in to comment.