3
0
Эх сурвалжийг харах

proposal title comes as Bytes now

Joystream Stats 2 жил өмнө
parent
commit
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);