fix a bug and update gitignore
This commit is contained in:
parent
81c5395639
commit
3e961cb789
|
@ -1,3 +1,4 @@
|
|||
/node_modules
|
||||
/dev
|
||||
.cache
|
||||
.cache
|
||||
/build
|
|
@ -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 (
|
||||
|
|
Loading…
Reference in New Issue