summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabe Kangas <gabek@real-ity.com>2022-01-03 23:48:34 -0800
committerGabe Kangas <gabek@real-ity.com>2022-01-06 23:02:48 -0800
commitde28e05d1a5db14a9e3259be7708e0d741949336 (patch)
tree52406931e6a09b7d06124e72e30fa566956021d4
parent473144105d71d080215301ccab89c3ef6d5d9433 (diff)
Fix js error with moderation actions. Closes #1621
-rw-r--r--webroot/js/components/chat/moderator-actions.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/webroot/js/components/chat/moderator-actions.js b/webroot/js/components/chat/moderator-actions.js
index a271fe1f8..d90939e33 100644
--- a/webroot/js/components/chat/moderator-actions.js
+++ b/webroot/js/components/chat/moderator-actions.js
@@ -237,7 +237,7 @@ function ModeratorMoreInfoContainer({
}) {
const { user, timestamp, body } = message;
const { displayName, createdAt, previousNames, displayColor } = user;
- const isAuthorModerator = user.scopes && user.scopes.contains('MODERATOR');
+ const isAuthorModerator = user.scopes && user.scopes.includes('MODERATOR');
const authorTextColor = { color: textColorForHue(displayColor) };
const createDate = new Date(createdAt);