From 720eb773417d0e5e63e1a578b70b8efe108ec8bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tr=C3=A8sAbhi?= <43380238+tresabhi@users.noreply.github.com> Date: Sun, 1 Sep 2024 23:06:40 -0500 Subject: [PATCH] fix: non depricated tier 1 --- .../[id]/components/Model/TechTreeSection/index.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/app/tools/tankopedia/[id]/components/Model/TechTreeSection/index.tsx b/src/app/tools/tankopedia/[id]/components/Model/TechTreeSection/index.tsx index def999ba1..5d9ac679c 100644 --- a/src/app/tools/tankopedia/[id]/components/Model/TechTreeSection/index.tsx +++ b/src/app/tools/tankopedia/[id]/components/Model/TechTreeSection/index.tsx @@ -27,7 +27,11 @@ export function TechTreeSection() { return [line]; } else { if (root.ancestors.length === 1 || root.tier === 2) { - line.push(root.ancestors[0]); + line.push( + root.ancestors.find( + (ancestor) => !awaitedTankDefinitions[ancestor].deprecated, + ) ?? root.ancestors[0], + ); return extend(line); } else { return root.ancestors