From 0bf76197cb28a6c35be0d8615e923dca5d343668 Mon Sep 17 00:00:00 2001 From: zoton2 Date: Sun, 18 Feb 2024 10:34:18 +0100 Subject: [PATCH] Fix hosts/commentator flags not working in some cases --- src/extension/misc.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/extension/misc.ts b/src/extension/misc.ts index d0957432..4830d311 100644 --- a/src/extension/misc.ts +++ b/src/extension/misc.ts @@ -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. @@ -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.