fixed display issue of governance
This commit is contained in:
parent
9917b2c534
commit
b7de3bcb34
@ -24,8 +24,10 @@ export default class Proposal {
|
|||||||
this.id = element.id
|
this.id = element.id
|
||||||
this.status = element.status
|
this.status = element.status
|
||||||
this.type = element.content.type
|
this.type = element.content.type
|
||||||
|
if (element.content.value) {
|
||||||
this.title = element.content.value.title
|
this.title = element.content.value.title
|
||||||
this.description = element.content.value.description
|
this.description = element.content.value.description
|
||||||
|
}
|
||||||
this.tally = new ProposalTally().init(element.final_tally_result, total)
|
this.tally = new ProposalTally().init(element.final_tally_result, total)
|
||||||
this.submit_time = element.submit_time
|
this.submit_time = element.submit_time
|
||||||
this.voting_end_time = element.voting_end_time
|
this.voting_end_time = element.voting_end_time
|
||||||
|
Loading…
Reference in New Issue
Block a user