Fixed bug where YouTube Super Chats would appear as 'undefined'

This commit is contained in:
nuttylmao
2025-06-12 02:09:47 +10:00
parent 5814a268d6
commit 920eef28dc
+2 -1
View File
@@ -1074,7 +1074,8 @@ function YouTubeSuperChat(data) {
// Set message text // Set message text
titleDiv.innerText = `🪙 ${data.user.name} sent a Super Chat (${data.amount})`; titleDiv.innerText = `🪙 ${data.user.name} sent a Super Chat (${data.amount})`;
contentDiv.innerText = `${data.message}!`; if (data.message)
contentDiv.innerText = `${data.message}!`;
AddMessageItem(instance, data.eventId); AddMessageItem(instance, data.eventId);
} }