Skip to content

Commit

Permalink
tweak(scores): use "..." instead of "DNF" for inline buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
gabeklavans committed Oct 24, 2023
1 parent 8331ccd commit 2790234
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server/routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ export default (fastify: FastifyInstance, opts: any, done: (err?: Error | undefi
function updateInlineKeyboard(gameSession: GameSession) {
const inlineKeyboard = new InlineKeyboard().game(GAME_START_BUTTON_TEXT).row();
Object.values(gameSession.players).forEach((player, idx) => {
inlineKeyboard.text(`${player.name}: ${player.score ?? "DNF"}`);
inlineKeyboard.text(`${player.name}: ${player.score ?? "..."}`);
if (idx % 2 == 1) inlineKeyboard.row();
});

Expand Down

0 comments on commit 2790234

Please sign in to comment.