Skip to content

Commit

Permalink
Merge pull request #7 from xPumaa/main
Browse files Browse the repository at this point in the history
prevent crashes with users who don't have discord pronouns set
  • Loading branch information
Penguin-Spy authored Aug 14, 2023
2 parents 0844ea0 + 0f188ca commit 1b1d39d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"github": "Penguin-Spy"
},
"source": "https://github.com/Penguin-Spy/replugged-pronoundb",
"version": "1.3.3",
"version": "1.3.4",
"updater": {
"type": "store",
"id": "dev.penguinspy.pronoundb"
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "replugged-pronoundb",
"version": "1.3.3",
"version": "1.3.4",
"description": "Shows users' PronounDB pronouns in chat so that you don't accidentally misgender people.",
"author": "Penguin_Spy",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/components/Pronouns.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ function getDiscordPronouns(userId, guildId) {
})
} else {
const discordPronouns = getGuildMemberProfile(userId, guildId)?.pronouns || userProfile?.pronouns
return discordPronouns.replace(/[\s\u200b]+/g, ' ').trim()
return discordPronouns?.replace(/[\s\u200b]+/g, ' ').trim()
}
}

Expand Down

0 comments on commit 1b1d39d

Please sign in to comment.