From ab416e4215cf64e77f2b9749b33a1b9f30399ec3 Mon Sep 17 00:00:00 2001 From: Gjermund Garaba Date: Tue, 27 Jun 2023 20:41:13 +0200 Subject: [PATCH] Fix new text proposal (no messages) for 0.46+ --- src/libs/clients/v0.46.0.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libs/clients/v0.46.0.ts b/src/libs/clients/v0.46.0.ts index 00b3a5df..d8a17d30 100644 --- a/src/libs/clients/v0.46.0.ts +++ b/src/libs/clients/v0.46.0.ts @@ -17,7 +17,7 @@ export const name = 'v0.46.7' function proposalAdapter(p: any): GovProposal { if(p) { - if(p.messages) p.content = p.messages[0].content || p.messages[0] + if(p.messages && p.messages.length >= 1) p.content = p.messages[0].content || p.messages[0] p.proposal_id = p.id p.final_tally_result = { yes: p.final_tally_result?.yes_count,