This commit is contained in:
jxxghp
2023-08-24 20:56:46 +08:00
parent ed45f3438f
commit 8ef2be1c81

View File

@@ -65,8 +65,8 @@ function getPercentage() {
return 0
return Math.round(
(((props.media?.total_episode || 0) - (props.media?.lack_episode || 0))
/ (props.media?.total_episode || 1))
(((props.media?.total_episode ?? 0) - (props.media?.lack_episode ?? 0))
/ (props.media?.total_episode ?? 1))
* 100,
)
}