From 9875281a7d4c1659051eeda22edeae1d423c0ec5 Mon Sep 17 00:00:00 2001
From: liangping <18786721@qq.com>
Date: Sun, 28 Aug 2022 21:22:38 +0800
Subject: [PATCH] Fix issue in upgrade proposal
---
src/libs/data/proposal.js | 3 +++
src/views/GovernanceProposalView.vue | 11 ++---------
2 files changed, 5 insertions(+), 9 deletions(-)
diff --git a/src/libs/data/proposal.js b/src/libs/data/proposal.js
index b921e3c0..6b6c1242 100644
--- a/src/libs/data/proposal.js
+++ b/src/libs/data/proposal.js
@@ -24,6 +24,9 @@ export default class Proposal {
this.id = element.proposal_id || element.id
this.status = element.status
this.type = element.content.type
+ if (element.content['@type']) {
+ this.type = element.content['@type']
+ }
this.tally = new ProposalTally().init(element.final_tally_result, total)
this.submit_time = element.submit_time
this.voting_end_time = element.voting_end_time
diff --git a/src/views/GovernanceProposalView.vue b/src/views/GovernanceProposalView.vue
index 5f2d1ec4..46c7d357 100644
--- a/src/views/GovernanceProposalView.vue
+++ b/src/views/GovernanceProposalView.vue
@@ -77,13 +77,6 @@
{{ $t('voting_time') }}