🔀 Merge pull request #227 from LarveyOfficial/fix-progress-color

🐛Fix completed torrents progress color
This commit is contained in:
Thomas Camlong
2022-06-15 06:51:06 +02:00
committed by GitHub

View File

@@ -158,7 +158,7 @@ export default function DownloadComponent() {
<Progress
radius="lg"
color={
torrent.state === 'paused' ? 'yellow' : torrent.progress === 1 ? 'green' : 'blue'
torrent.progress === 1 ? 'green' : torrent.state === 'paused' ? 'yellow' : 'blue'
}
value={torrent.progress * 100}
size="lg"