Skip to content

Commit

Permalink
feat: Instrument Picker Answer value translated to Instrument Name in…
Browse files Browse the repository at this point in the history
… the Proposal Report download PDF.
  • Loading branch information
yoganandaness committed Jun 16, 2023
1 parent efa3a15 commit ab4d5f2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions apps/user-office-backend/src/factory/pdf/proposal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -329,6 +329,12 @@ export const collectProposalPDFData = async (
genericTemplate.questionId === answer.question.id
)
.map((genericTemplate) => genericTemplate);
} else if (answer.question.dataType === DataType.INSTRUMENT_PICKER) {
const instrument = await baseContext.queries.instrument.get(
user,
answer.value as number
);
answer.value = instrument?.name ?? '';
}
}

Expand Down

0 comments on commit ab4d5f2

Please sign in to comment.