diff --git a/src/data/combineResults.js b/src/data/combineResults.js index aa4d793..69d086d 100644 --- a/src/data/combineResults.js +++ b/src/data/combineResults.js @@ -98,7 +98,7 @@ export default function handleCombinedRoomStats(shardsData, userData) { } } - if (process.env.ONLY_COMBINED_DATA_UPLOAD.toLowerCase() === "true") + if ((process.env.ONLY_COMBINED_DATA_UPLOAD || "").toLowerCase() === "true") delete userStats.shards; return { stats: userStats }