Cleaning up index modification
This commit is contained in:
@ -1166,9 +1166,8 @@ export function getUser(uri){
|
||||
.then(
|
||||
response => {
|
||||
dispatch({
|
||||
type: 'USER_LOADED',
|
||||
key: response.uri,
|
||||
user: response
|
||||
type: 'USERS_LOADED',
|
||||
users: [response]
|
||||
});
|
||||
},
|
||||
error => {
|
||||
|
||||
@ -413,9 +413,8 @@ const SpotifyMiddleware = (function(){
|
||||
ReactGA.event({category: 'Spotify', action: 'Authorization verified', label: action.data.id});
|
||||
|
||||
store.dispatch({
|
||||
type: 'USER_LOADED',
|
||||
key: action.data.uri,
|
||||
user: action.data
|
||||
type: 'USERS_LOADED',
|
||||
users: [action.data]
|
||||
})
|
||||
|
||||
next(action);
|
||||
|
||||
Reference in New Issue
Block a user