fix a bug and update gitignore

This commit is contained in:
jinhojang6 2020-01-31 00:39:44 +09:00
parent 81c5395639
commit 3e961cb789
2 changed files with 2 additions and 3 deletions

3
.gitignore vendored
View File

@ -1,3 +1,4 @@
/node_modules
/dev
.cache
.cache
/build

View File

@ -15,13 +15,11 @@ class NowPlaying extends Component {
const { playStatus, loading } = this.props.player
const { img, title, podcast } = this.props.player.track
const podcastLoading = playStatus === 'PLAYING' && loading
let podcastImage = ''
if (title) {
podcastImage = podcasts
.filter(p => p.name === podcast)[0]
.img.replace(/100x100/g, '30x30')
}
return (