Commit 62eba16b authored by Christopher Mark Fullarton's avatar Christopher Mark Fullarton
Browse files

Fixes export file generation

parent d8efc744
......@@ -343,7 +343,8 @@ export class SummaryExcelWorksheet extends ExcelWorksheet implements IExcelWorks
protected getLeaderboardData(): Array<ILeaderBoardItemBase> {
const leaderBoard = new Leaderboard();
return leaderBoard.sortBy(leaderBoard.buildLeaderboard(this.quiz), 'score');
const { correctResponses } = leaderBoard.buildLeaderboard(this.quiz);
return leaderBoard.sortBy(correctResponses, 'score');
}
private addLogoImage(): void {
......
......@@ -688,7 +688,7 @@ export class QuizRouter extends AbstractRouter {
step: MessageProtocol.GetLeaderboardData,
payload: {
correctResponses: sortedCorrectResponses.splice(0, amount),
ownResponse: ownResponse,
ownResponse,
memberGroupResults: this._leaderboard.sortBy(memberGroupResults, 'score'),
},
};
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment