Skip to content

Commit

Permalink
Standardize mcq and msq
Browse files Browse the repository at this point in the history
  • Loading branch information
itstrueitstrueitsrealitsreal committed Jul 2, 2024
1 parent 08f5f3a commit 8500e40
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export class MsqQuestionStatisticsComponent extends MsqQuestionStatisticsCalcula
{ header: 'Recipient Email', sortBy: SortBy.RECIPIENT_EMAIL },
...Object.keys(this.weightPerOption).map((key: string) => {
return {
header: `${key} [${this.weightPerOption[key]}]`,
header: `${key} [${(this.weightPerOption[key]).toFixed(2)}]`,
sortBy: SortBy.MSQ_OPTION_SELECTED_TIMES,
};
}),
Expand All @@ -84,8 +84,8 @@ export class MsqQuestionStatisticsComponent extends MsqQuestionStatisticsCalcula
value: this.perRecipientResponses[key].responses[option],
};
}),
{ value: this.perRecipientResponses[key].total },
{ value: this.perRecipientResponses[key].average },
{ value: (this.perRecipientResponses[key].total).toFixed(2) },
{ value: (this.perRecipientResponses[key].average).toFixed(2) },
];
});
}
Expand Down

0 comments on commit 8500e40

Please sign in to comment.