mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-21 10:47:04 +02:00
fix: no tech tree for non-researchable tanks
This commit is contained in:
1 parent
6dffe3db45
commit
acb52b9888
1 file changed
+4
-1
@@ -14,9 +14,12 @@ const tankDefinitions = await fetchTankDefinitions();
|
||||
export const XP_MULTIPLIERS = [1, 2, 3, 4, 5, 10];
|
||||
|
||||
export function TechTreeSection() {
|
||||
const master = Duel.use((state) => state.protagonist.tank);
|
||||
|
||||
if (master.type !== TankType.RESEARCHABLE) return null;
|
||||
|
||||
const xpMultiplier = TankopediaEphemeral.use((state) => state.xpMultiplier);
|
||||
const mutateTankopediaEphemeral = TankopediaEphemeral.useMutation();
|
||||
const master = Duel.use((state) => state.protagonist.tank);
|
||||
const container = useRef<HTMLDivElement>(null);
|
||||
const lines = useMemo(() => {
|
||||
function extend(line: Line): Line[] {
|
||||
|
||||
Reference in new issue
Block a user