diff --git a/lib/utils/ItemsDat.ts b/lib/utils/ItemsDat.ts index 0baf58e..7b99118 100644 --- a/lib/utils/ItemsDat.ts +++ b/lib/utils/ItemsDat.ts @@ -36,7 +36,7 @@ export class ItemsDat { for (const key of keys) { const strBuf = item[key] as unknown as string; - if (this.stringFields.includes(key) && strBuf) { + if (this.stringFields.includes(key) && typeof strBuf === "string") { // calc length typeof item[key] === "string" size += strBuf.length + 2; }