Twitch API Online Channel is Also Appearing As Offline

Twitch API Online Channel is Also Appearing As Offline
0

#1

Channel OgamingSC2 is both appearing Online and Offline.

$(document).ready(function () {
  var streamers = ["ESL_SC2", "OgamingSC2", "freecodecamp",  "noobs2ninjas"];
  var logo, status, name, url;

for (var i =0; i<streamers.length;i++) {
	var stream = 'https://wind-bow.glitch.me/twitch-api/streams/' + streamers[i] ;
	$.getJSON(stream, function(onl){
    logo = onl.stream.channel.logo;
    	status = onl.stream.channel.status;
    	url = onl.stream.channel.url;
    	name = onl.stream.channel.display_name;
    if (onl.stream !== null) {
    	$('#online').prepend('<img src="'+ logo + '" class="col-sm-4"></img><a href="' + url + '" class="col-sm-4">' + name + '</a><span class="col-sm-4">' + status + '</span>');
    }
	});
  
}

for (var j =0; j<streamers.length;j++) {
	var channel = 'https://wind-bow.glitch.me/twitch-api/channels/' + streamers[j];
	$.getJSON(channel).done(function(ofl){
    
    logo = ofl.logo;
    	status = 'Offline';
    	url = ofl.url;
    	name = ofl.display_name;

    if (ofl.stream == null) {	
    	$('#offline').prepend('<img src="'+ logo + '" class="col-sm-4"></img><a href="' + url + '" class="col-sm-4">' + name + '</a><span class="col-sm-4">' + status + '</span>');  
    }
	});
  
}

});