User not loaded; diagnosing endpoint undefined

This commit is contained in:
James Barnsley
2017-09-25 20:32:12 +13:00
parent beafc9e2a8
commit 9c107d715c
2 changed files with 4 additions and 4 deletions

View File

@ -23,7 +23,7 @@ const sendRequest = ( dispatch, getState, endpoint, method = 'GET', data = false
// prepend the API baseurl, unless the endpoint already has it (ie pagination requests)
var url = 'https://api.spotify.com/v1/'+endpoint
if( endpoint.startsWith('https://api.spotify.com/') ) url = endpoint;
if (endpoint.startsWith('https://api.spotify.com/')) url = endpoint;
// create our ajax request config
var config = {