Skip to content

Commit

Permalink
Fix oengus display name importing
Browse files Browse the repository at this point in the history
  • Loading branch information
duncte123 committed Aug 14, 2023
1 parent dc3e65c commit 33ad37f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/extension/misc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,9 @@ export async function searchOengusPronouns(val: string): Promise<string> {
? user.pronouns.split(',')[0]
: user.pronouns?.[0];

return pronouns ? `${user.username} (${pronouns})` : user.username;
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore (display name is not in types yet)
return pronouns ? `${user.displayName} (${pronouns})` : user.username;
}

async function searchPronounsOnEsByStr(val: string): Promise<string> {
Expand Down

0 comments on commit 33ad37f

Please sign in to comment.