Browse Source

proposal title comes as Bytes now

Joystream Stats 2 years ago
parent
commit
fb1a8bce1d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      api.ts

+ 1 - 1
api.ts

@@ -450,7 +450,7 @@ export const getProposal = async (
   const { description, parameters, proposerId, votingResults } = proposal;
   const member: Membership = await getMember(api, proposerId);
   const author = String(member ? member.handle : proposerId);
-  const title = proposal.title.toString();
+  const title = String(proposal.title.toHuman());
   const type: string = await getProposalType(api, id);
   const args: string[] = [String(id), title, type, stage, result, author];
   const message = formatProposalMessage(args);