When the game details are private, however, the response looks like this:
{"response":{}}
In both cases, the HTTP status code is 200. That's why currently, you get this error when the profile is private: TypeError: Cannot read property 'map' of undefined. This PR throws a No games found error instead.
When the game details of a user are not private, the response looks like this:
When the game details are private, however, the response looks like this:
In both cases, the HTTP status code is 200. That's why currently, you get this error when the profile is private:
TypeError: Cannot read property 'map' of undefined
. This PR throws aNo games found
error instead.