Merge pull request #905 from GilgusMaximus/development
Fix 0 (dis)likes displayed as NaN
This commit is contained in:
commit
5fe5164ebb
|
@ -264,8 +264,8 @@ export default Vue.extend({
|
||||||
this.videoLikeCount = null
|
this.videoLikeCount = null
|
||||||
this.videoDislikeCount = null
|
this.videoDislikeCount = null
|
||||||
} else {
|
} else {
|
||||||
this.videoLikeCount = result.videoDetails.likes
|
this.videoLikeCount = isNaN(result.videoDetails.likes) ? 0 : result.videoDetails.likes
|
||||||
this.videoDislikeCount = result.videoDetails.dislikes
|
this.videoDislikeCount = isNaN(result.videoDetails.dislikes) ? 0 : result.videoDetails.dislikes
|
||||||
}
|
}
|
||||||
this.isLive = result.player_response.videoDetails.isLive
|
this.isLive = result.player_response.videoDetails.isLive
|
||||||
this.isLiveContent = result.player_response.videoDetails.isLiveContent
|
this.isLiveContent = result.player_response.videoDetails.isLiveContent
|
||||||
|
|
Loading…
Reference in New Issue