File tree 2 files changed +2
-1
lines changed
client/src/routes/contests
2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ <h2>{{contest.name}} Winners</h2>
17
17
{{#each sorted as score, index}}
18
18
< tr >
19
19
< td > {{index + 1}}</ td >
20
- < td > < a class ="entry-link " href ="/entry/{{score.id}} "> < GithubAvatar id ="{{score.user }} " size ="{{index < 3 ? 50 : 30}} " rounded /> {{score.name}}</ a > </ td >
20
+ < td > < a class ="entry-link " href ="/entry/{{score.id}} "> < GithubAvatar id ="{{score.github_id }} " size ="{{index < 3 ? 50 : 30}} " rounded /> {{score.name}}</ a > </ td >
21
21
< td > {{score.score}}</ td >
22
22
</ tr >
23
23
{{/each}}
Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ export function getContestScores(contest: number): Promise<any> {
17
17
score . name = await getUserName ( score . github_id ) ;
18
18
score . score = + score . score . toFixed ( 1 ) ;
19
19
score . id = hash ( < number > score . id ) ;
20
+ delete score . user ;
20
21
return score ;
21
22
} ) ) )
22
23
. then ( scores => {
You can’t perform that action at this time.
0 commit comments