Skip to content

Commit

Permalink
fix(sideways-chat): fix "undefined" on pronouns badge (#192)
Browse files Browse the repository at this point in the history
  • Loading branch information
resir014 authored Aug 27, 2024
1 parent af94ed2 commit 56ee0a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/sideways-chat/sideways-chat.js
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ window.addEventListener('onEventReceived', async function handleEventReceived(ob
console.log(pronounDisplay);
if (typeof pronounUser[0] !== 'undefined') {
const pronouns = pronounList.find(pronoun => pronoun.name === pronounUser[0].pronoun_id);
pronounDisplay = `<span class="pronoun">${pronouns?.display}</span>`;
pronounDisplay = `<span class="pronoun">${pronouns?.display || 'Other'}</span>`;
}
console.log('after check');
console.log(pronounDisplay);
Expand Down

0 comments on commit 56ee0a7

Please sign in to comment.