From 76337f02d0df66ae5120a42fb019c7eb10b24f58 Mon Sep 17 00:00:00 2001 From: liangping <18786721@qq.com> Date: Wed, 7 Dec 2022 20:36:52 +0800 Subject: [PATCH] fixed empty messages issue --- src/libs/data/proposal.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libs/data/proposal.js b/src/libs/data/proposal.js index 5b62cfcf..65c991f8 100644 --- a/src/libs/data/proposal.js +++ b/src/libs/data/proposal.js @@ -53,7 +53,7 @@ export default class Proposal { versionFixed(ver) { if (compareVersions(ver, '0.46') >= 0) { - [this.contents] = this.element.messages + if (this.element.messages) [this.contents] = this.element.messages if (this.contents) this.type = this.contents['@type'] if (this.contents['@type'] === '/cosmos.gov.v1.MsgExecLegacyContent') { this.title = this.contents.content.title