Hide speed when it is 0 to avoid displaying misleading 0 speed
Some checks failed
Some checks failed
This commit is contained in:
@@ -878,7 +878,7 @@ function createDownloadCard(download) {
|
||||
details.appendChild(progressItem);
|
||||
}
|
||||
|
||||
if (download.speed !== undefined && download.speed !== null) {
|
||||
if (download.speed && download.speed > 0) {
|
||||
const speed = createDetailItem('Speed', download.speed);
|
||||
details.appendChild(speed);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user