Skip to content

Commit

Permalink
display usernames, not user IDs - after lichess-org#10572
Browse files Browse the repository at this point in the history
  • Loading branch information
ornicar committed Feb 24, 2022
1 parent 4898dc6 commit 9cbe2ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/analyse/src/explorer/explorerConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export class ExplorerConfigCtrl {

constructor(readonly root: AnalyseCtrl, readonly variant: VariantKey, readonly onClose: () => void) {
this.myName = document.body.dataset['user'];
this.participants = [root.data.player.user?.id, root.data.opponent.user?.id].filter(
this.participants = [root.data.player.user?.username, root.data.opponent.user?.username].filter(
name => name && name != this.myName
);
if (variant === 'standard') this.allDbs.unshift('masters');
Expand Down

0 comments on commit 9cbe2ee

Please sign in to comment.