浏览代码

proposal title comes as Bytes now

Joystream Stats 2 年之前
父节点
当前提交
fb1a8bce1d
共有 1 个文件被更改,包括 1 次插入1 次删除
  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);