Merge pull request #195 from Leppunen/fix-7tv-empty-emotesets

This commit is contained in:
gempir 2023-04-04 21:33:27 +02:00 committed by GitHub
commit bf93d8410c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -29,7 +29,7 @@ export function use7tvChannelEmotes(channelId: string): Array<ThirdPartyEmote> {
const emotes = [];
for (const channelEmote of data?.emote_set.emotes ?? []) {
for (const channelEmote of data?.emote_set?.emotes ?? []) {
const webpEmotes = channelEmote.data.host.files.filter(i => i.format === 'WEBP');
const emoteURL = channelEmote.data.host.url;
emotes.push({

View file

@ -6,7 +6,7 @@ interface StvGlobal {
}
interface StvChannel {
emote_set: StvEmoteSet;
emote_set: StvEmoteSet | null;
}
interface StvEmoteSet {