Skip to content

Commit

Permalink
Merge pull request #1161 from gagansuie/dev
Browse files Browse the repository at this point in the history
Fix: checking if platform exists
  • Loading branch information
gagansuie authored Apr 22, 2024
2 parents 1ada7e5 + 4c28779 commit decbea1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/routes/channel/[channelId]/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@
}
const getPlatformChatYouTube = async () => {
if (channel.isLive && channel.platforms.some((platform: any) => platform.name === 'YouTube')) {
if (channel.isLive && channel.platforms?.some((platform: any) => platform.name === 'YouTube')) {
let url = `youtube/messages?userId=${channel.userId}`
if (youtubeChatPageToken) {
url += `&pageToken=${youtubeChatPageToken}`
Expand Down

0 comments on commit decbea1

Please sign in to comment.