From e0a008b4662ee39e29c553462de9f3e4f0065cdc Mon Sep 17 00:00:00 2001 From: liangping <18786721@qq.com> Date: Sun, 16 Oct 2022 17:06:25 +0800 Subject: [PATCH] add support for v0.46.1 --- src/libs/data/proposal.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/libs/data/proposal.js b/src/libs/data/proposal.js index a899ebb3..498059f0 100644 --- a/src/libs/data/proposal.js +++ b/src/libs/data/proposal.js @@ -50,8 +50,11 @@ export default class Proposal { } versionFixed(ver) { - if (compareVersions(ver, '0.40') >= 0) { - // do nothing + if (compareVersions(ver, '0.46') >= 0) { + if (this.element.metadata) { + this.title = this.element.metadata.title || this.element.metadata + this.description = this.element.metadata.description || this.element.metadata + } } else if (compareVersions(ver, '0.30') >= 0) { switch (this.element.proposal_status) { case 'Passed':