diff --git a/src/renderers/statsfull.tsx b/src/renderers/statsfull.tsx index 1c867f9f9..c876c7bf9 100644 --- a/src/renderers/statsfull.tsx +++ b/src/renderers/statsfull.tsx @@ -107,6 +107,10 @@ export default async function statsfull( tierWeights = await entries.reduce>( async (accumulator, [tankIdString, stats]) => { const tankId = parseInt(tankIdString); + const tankopediaEntry = (await tankopedia)[tankId]; + + if (!tankopediaEntry) return accumulator; + const tier = (await tankopedia)[tankId].tier as Tier; if ((await accumulator)[tier]) {