fix: StatisticsMenu - max of 100% for completed

Signed-off-by: Lachezar Lechev <lachezar@ambire.com>
This commit is contained in:
Lachezar Lechev 2025-05-12 13:47:09 +03:00
parent 242a4a8110
commit 2dec01923a
No known key found for this signature in database
GPG key ID: FDC9325CE311E8A4

View file

@ -33,7 +33,7 @@ const StatisticsMenu = ({ className, peers, speed, completed, infoHash }) => {
Completed
</div>
<div className={styles['value']}>
{ completed } %
{ Math.min(completed, 100) } %
</div>
</div>
</div>