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.videoDislikeCount = null
|
||||
} else {
|
||||
this.videoLikeCount = result.videoDetails.likes
|
||||
this.videoDislikeCount = result.videoDetails.dislikes
|
||||
this.videoLikeCount = isNaN(result.videoDetails.likes) ? 0 : result.videoDetails.likes
|
||||
this.videoDislikeCount = isNaN(result.videoDetails.dislikes) ? 0 : result.videoDetails.dislikes
|
||||
}
|
||||
this.isLive = result.player_response.videoDetails.isLive
|
||||
this.isLiveContent = result.player_response.videoDetails.isLiveContent
|
||||
|
|
Loading…
Reference in New Issue