From b7de3bcb3484baf9ce11437db3d4b720459e192d Mon Sep 17 00:00:00 2001 From: liangping <18786721@qq.com> Date: Mon, 10 Jan 2022 09:35:55 +0800 Subject: [PATCH] fixed display issue of governance --- src/libs/data/proposal.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/libs/data/proposal.js b/src/libs/data/proposal.js index 938ebe81..873ca2ce 100644 --- a/src/libs/data/proposal.js +++ b/src/libs/data/proposal.js @@ -24,8 +24,10 @@ export default class Proposal { this.id = element.id this.status = element.status this.type = element.content.type - this.title = element.content.value.title - this.description = element.content.value.description + if (element.content.value) { + this.title = element.content.value.title + this.description = element.content.value.description + } this.tally = new ProposalTally().init(element.final_tally_result, total) this.submit_time = element.submit_time this.voting_end_time = element.voting_end_time