diff --git a/src/structure/client/wrappers/UserWrapper.js b/src/structure/client/wrappers/UserWrapper.js index 544ec88..79b7ecd 100644 --- a/src/structure/client/wrappers/UserWrapper.js +++ b/src/structure/client/wrappers/UserWrapper.js @@ -44,7 +44,10 @@ class UserWrapper { ); if (find.length) { - for (const { points, expiration, id } of find) { + for (const { points: p, expiration, id } of find) { + let points = p; + // Imported cases may have false or null + if (typeof points !== 'number') points = 0; if (expiration > 0) { index.expirations.push({ points, expiration, id }); } else {