That’s likely because streamerName has no value. You declare the variable but then use it in a function before you ever give it a value. You need to wait for your first api call to finish (which you then have assigning it a value) before calling the 2nd function.
1 Like