Skip to content

Commit

Permalink
Fix error when profile image is not set (#612)
Browse files Browse the repository at this point in the history
  • Loading branch information
youpy committed Aug 29, 2020
1 parent d0caba1 commit 6310311
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/providers/spotify.js
Expand Up @@ -15,7 +15,7 @@ export default (options) => {
id: profile.id,
name: profile.display_name,
email: profile.email,
image: profile.images[0].url
image: profile.images.length > 0 ? profile.images[0].url : undefined
}
},
...options
Expand Down

1 comment on commit 6310311

@vercel
Copy link

@vercel vercel bot commented on 6310311 Aug 29, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.