diff --git a/frontend/src/components/scoreboard.tsx b/frontend/src/components/scoreboard.tsx index aff9ea0..702c96c 100644 --- a/frontend/src/components/scoreboard.tsx +++ b/frontend/src/components/scoreboard.tsx @@ -28,6 +28,12 @@ export default class Scoreboard extends React.Component { } tableRow(learner: TopTen) { + // Gotta show respect! (That Unicode monster is a crown) + const username = { + false: learner.username, + true: `${learner.username} 👑` + }[learner.nr === 1]; + return @@ -35,7 +41,7 @@ export default class Scoreboard extends React.Component { - {learner.username} + {username} {/*{learner.level}*/} {/* To make this fit on both mobile and desktop, we don't use