Skip to content

Commit

Permalink
Fix hosts/commentator flags not working in some cases
Browse files Browse the repository at this point in the history
  • Loading branch information
zoton2 committed Feb 18, 2024
1 parent c7a75a8 commit 0bf7619
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/extension/misc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ nodecg().listenFor('commentatorAdd', async (val: string | null | undefined, ack)
if (country && country.includes('-')) country = country.replace('-', '/');
commentatorsNew.value.push({
name: user.name,
country: user.country || undefined,
country: country || undefined,
pronouns: user.pronouns || undefined,
});
// Old way for backwards compatibility.
Expand Down Expand Up @@ -187,7 +187,7 @@ nodecg().listenFor('readerModify', async (val: string | null | undefined, ack) =
if (country && country.includes('-')) country = country.replace('-', '/');
donationReaderNew.value = {
name: user.name,
country: user.country || undefined,
country: country || undefined,
pronouns: user.pronouns || undefined,
};
// Old way for backwards compatibility.
Expand Down

0 comments on commit 0bf7619

Please sign in to comment.