diff --git a/src/components/ProposalListItem.vue b/src/components/ProposalListItem.vue index 7ee0ce59..98b52106 100644 --- a/src/components/ProposalListItem.vue +++ b/src/components/ProposalListItem.vue @@ -9,7 +9,7 @@ import { select } from '@/components/dynamic/index'; import type { PaginatedProposals } from '@/types'; import ProposalProcess from './ProposalProcess.vue'; import type { PropType } from 'vue'; -import { ref } from 'vue'; +import { computed, ref } from 'vue'; const dialog = useTxDialog(); defineProps({ proposals: { type: Object as PropType }, @@ -38,6 +38,11 @@ const voterStatusMap: Record = { }; const proposalInfo = ref(); + +function metaItem(metadata: string|undefined): { title: string; summary: string } { + return metadata ? JSON.parse(metadata) : {} +} +