Merge pull request #195 from Leppunen/fix-7tv-empty-emotesets
This commit is contained in:
commit
bf93d8410c
2 changed files with 2 additions and 2 deletions
|
@ -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({
|
||||
|
|
|
@ -6,7 +6,7 @@ interface StvGlobal {
|
|||
}
|
||||
|
||||
interface StvChannel {
|
||||
emote_set: StvEmoteSet;
|
||||
emote_set: StvEmoteSet | null;
|
||||
}
|
||||
|
||||
interface StvEmoteSet {
|
||||
|
|
Loading…
Add table
Reference in a new issue