From 0d689dc6602e383747f13de4f8c77fab47072b9c Mon Sep 17 00:00:00 2001 From: Tobiah Date: Mon, 30 Mar 2020 10:55:23 -0500 Subject: [PATCH] null check for no data from twitch --- src/notifications/TwitchNotifier.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/notifications/TwitchNotifier.js b/src/notifications/TwitchNotifier.js index 838bdf561..17683b287 100644 --- a/src/notifications/TwitchNotifier.js +++ b/src/notifications/TwitchNotifier.js @@ -78,7 +78,7 @@ class TwitchNotifier { .then(data => data.json()); // If the stream query has some results, then the user is live - if (response.data.length > 0) { + if (response.data && response.data.length > 0) { // parse what time the stream started const startedAt = moment(response.data[0].started_at);