diff --git a/src/js/helpers.js b/src/js/helpers.js index 41d653fd..495b5c0d 100755 --- a/src/js/helpers.js +++ b/src/js/helpers.js @@ -14,12 +14,12 @@ export let sizedImages = function( images ){ for( var i = 0; i < images.length; i++ ){ // spotify-styled images - if( typeof(images[i].height) !== 'undefined' ){ - if( images[i].height < 400 ){ + if( typeof(images[i].width) !== 'undefined' ){ + if( images[i].width < 400 ){ sizes.small = images[i].url; - }else if( images[i].height < 800 ){ + }else if( images[i].width < 800 ){ sizes.medium = images[i].url; - }else if( images[i].height < 1000 ){ + }else if( images[i].width < 1000 ){ sizes.large = images[i].url; }else{ sizes.huge = images[i].url; diff --git a/src/js/services/ui/reducer.js b/src/js/services/ui/reducer.js index 48a5c1a4..2222f9c6 100755 --- a/src/js/services/ui/reducer.js +++ b/src/js/services/ui/reducer.js @@ -297,7 +297,6 @@ export default function reducer(ui = {}, action){ var playlists = Object.assign([], ui.playlists) if (playlists[action.uri]){ - console.log([playlists[action.uri],action.playlist]) var playlist = Object.assign({}, playlists[action.uri], action.playlist) }else{ var playlist = Object.assign({}, action.playlist)