mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-07 13:41:26 -07:00
Catch invalid values
This commit is contained in:
parent
5ccd4b3611
commit
ae374f6903
1 changed files with 1 additions and 1 deletions
|
@ -12,7 +12,7 @@ function friendlyUnit(value, isSpeed) {
|
|||
"QBT_TR(EiB)QBT_TR[CONTEXT=misc]"
|
||||
];
|
||||
|
||||
if (value < 0)
|
||||
if ((value === undefined) || (value === null) || (value < 0))
|
||||
return "QBT_TR(Unknown)QBT_TR[CONTEXT=misc]";
|
||||
|
||||
var i = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue