Skip to content

Commit

Permalink
fix isNaN issue
Browse files Browse the repository at this point in the history
  • Loading branch information
darnautov committed Nov 21, 2024
1 parent 889ce00 commit c9dd244
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -697,8 +697,7 @@ export const ModelsList: FC<Props> = ({
<>
{downloadState
? (
(downloadState.downloaded_parts / downloadState.total_parts) *
100
(downloadState.downloaded_parts / downloadState.total_parts || -1) * 100
).toFixed(0) + '%'
: '100%'}
</>
Expand Down

0 comments on commit c9dd244

Please sign in to comment.