Skip to content

Commit

Permalink
onsite-toolkit: diaplay unstar
Browse files Browse the repository at this point in the history
  • Loading branch information
pandadtdyy committed Jan 3, 2025
1 parent f18a49d commit b2e01ab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/onsite-toolkit/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export function apply(ctx: Context) {
problems: tdoc.pids.map((i, n) => ({ name: pid(n), id: i.toString() })),
teams: teams.map((t) => ({
id: t.uid.toString(),
name: udict[t.uid].uname,
name: (t.unstar ? '⭐' : '') + udict[t.uid].displayName ? udict[t.uid].displayName : udict[t.uid].uname,
avatar: avatar(udict[t.uid].avatar),
institution: udict[t.uid].school || unknownSchool,
})),
Expand Down Expand Up @@ -99,7 +99,7 @@ export function apply(ctx: Context) {
return {
team_id: `team-${udoc._id}`,
name: udoc.uname,
displayName: udoc.displayName,
displayName: (i.unrank ? '⭐' : '') + udoc.displayName,
organization: udoc.school || udoc.uname,
avatar: avatar(udoc.avatar),
group: [
Expand Down

0 comments on commit b2e01ab

Please sign in to comment.