Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Commit f43c587

Browse files
committed
fixing missing headshot and country on leaderboard
1 parent 54654bf commit f43c587

File tree

3 files changed

+1521
-1493
lines changed

3 files changed

+1521
-1493
lines changed

common/helper.js

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,9 @@ async function prepareLeaderboard (challengeId, finalists, groupId, groupChallen
9595

9696
member.status = 'awaiting submission here'
9797
member.handle = l.handle
98+
member.country = l.country
99+
member.countryFlag = l.countryFlag
100+
member.profilePic = l.profilePic
98101
}
99102

100103
return member
@@ -134,6 +137,9 @@ async function prepareLeaderboard (challengeId, finalists, groupId, groupChallen
134137

135138
member.status = 'awaiting submission here'
136139
member.handle = l.handle
140+
member.country = l.country
141+
member.countryFlag = l.countryFlag
142+
member.profilePic = l.profilePic
137143
}
138144

139145
return member
@@ -148,7 +154,10 @@ async function prepareLeaderboard (challengeId, finalists, groupId, groupChallen
148154
if (!found) {
149155
leaderboard.push({
150156
handle: finalists[i].handle,
151-
status: 'awaiting submission'
157+
status: 'awaiting submission',
158+
country: finalists[i].country,
159+
countryFlag: finalists[i].countryFlag,
160+
profilePic: finalists[i].profilePic
152161
})
153162
}
154163
}

0 commit comments

Comments
 (0)