fix: incorrect directory size due to wrong variable being used

pull/566/head
Falko Galperin 2025-04-04 17:18:22 +02:00
parent baa8babc59
commit 7474d79948
No known key found for this signature in database
GPG Key ID: C4A60C593B625612
1 changed files with 2 additions and 2 deletions

View File

@ -881,8 +881,8 @@ function padZero(value, size) {
}
function formatDirSize(size) {
const unit = file.size === 1 ? "item" : "items";
const num = size >= MAX_SUBPATHS_COUNT ? `>${MAX_SUBPATHS_COUNT - 1}` : `${file.size}`;
const unit = size === 1 ? "item" : "items";
const num = size >= MAX_SUBPATHS_COUNT ? `>${MAX_SUBPATHS_COUNT - 1}` : `${size}`;
return ` ${num} ${unit}`;
}