Skip to content

Commit

Permalink
fix(data): use 0 instead hard value for nan
Browse files Browse the repository at this point in the history
This fix the translation of number
  • Loading branch information
orblazer committed Dec 4, 2021
1 parent 483b481 commit a310230
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion package/contents/ui/main.qml
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ Item {

function humanReadableBytes(value) {
if (isNaN(parseInt(value))) {
return '0 B'
value = 0
}

// https://github.com/KDE/kcoreaddons/blob/master/src/lib/util/kformat.h
Expand Down

0 comments on commit a310230

Please sign in to comment.