createGradient fn fixed

This commit is contained in:
Daniel Shleifman
2021-06-19 02:43:11 +03:00
parent a6f966718c
commit 8ec2dc855a
2 changed files with 3 additions and 3 deletions

View File

@@ -75,7 +75,7 @@ const TorrentCache = ({ cache, isMini }) => {
ctx.lineWidth = borderWidth
ctx.fillStyle = inProgress
? createGradient(ctx, percentage)
? createGradient(ctx, percentage, pieceSize)
: isCompleted
? completeColor
: isMini