Skip to content

Commit

Permalink
Minor fixes in proposal metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
emmdim committed Oct 3, 2023
1 parent 2acf1aa commit d2e53da
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/js-client/src/internal/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,11 @@ export function toNewProposal(
name: daoName, //string; TODO
},
creatorAddress: vochainProposal.organizationId, //string;
metadata: EMPTY_PROPOSAL_METADATA_LINK, //ProposalMetadata; //TODO
metadata: {
title: vochainProposal.title.default,
description: vochainProposal.description?.default || '',
summary: vochainProposal.questions[0].title.default,
}, //ProposalMetadata; //TODO
startDate: vochainProposal.startDate, //Date;
endDate: vochainProposal.endDate, //Date;
creationDate: vochainProposal.creationTime, //Date;
Expand Down

0 comments on commit d2e53da

Please sign in to comment.