Adding spotify gateway error display; Artist images fix (again?)

This commit is contained in:
James Barnsley
2019-02-04 14:48:10 +13:00
parent 39f8514098
commit f11b50b332
5 changed files with 220 additions and 212 deletions

View File

@ -84,7 +84,11 @@ const request = (dispatch, getState, endpoint, method = 'GET', data = false) =>
)
},
error => {
reject(error)
dispatch(coreActions.handleException(
error.error
));
reject(error);
}
);
}
@ -166,7 +170,7 @@ function refreshToken(dispatch, getState){
type: 'SPOTIFY_TOKEN_REFRESHED',
data: response
})
resolve(response)
resolve(response);
},
(xhr, status, error) => {
dispatch(uiActions.stopLoading(loader_key));