mirror of
https://github.com/jxxghp/MoviePilot-Frontend.git
synced 2026-07-12 16:01:35 +08:00
fix
This commit is contained in:
@@ -65,8 +65,8 @@ function getPercentage() {
|
|||||||
return 0
|
return 0
|
||||||
|
|
||||||
return Math.round(
|
return Math.round(
|
||||||
(((props.media?.total_episode || 0) - (props.media?.lack_episode || 0))
|
(((props.media?.total_episode ?? 0) - (props.media?.lack_episode ?? 0))
|
||||||
/ (props.media?.total_episode || 1))
|
/ (props.media?.total_episode ?? 1))
|
||||||
* 100,
|
* 100,
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user