I cant seem to display User on twitch API link

I have seemed to successfully hide and show All twitch users. What I cant seem to achieve is to display users that are currently streaming.

I tried to implements this

              $("#live").click(function() { 
        if(data.stream !== null){
          $( ".container" ).append( "<p>"+freeCode+"</p>" )
        }else if(data.stream === null){
            $("p").addClass("hide") 
              
        }

just to see if it worked but it failed.

Here is a link to my codepen

Hi @zootechdrum,

The link you’ve provided doesn’t go to codepen, can you provide the correct link?