mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-21 18:57:03 +02:00
fix: inclusive master
This commit is contained in:
1 parent
83586bdb71
commit
8a381b5d24
1 file changed
+1
-1
@@ -50,7 +50,7 @@ export function TechTreeSection() {
|
||||
}, [master]);
|
||||
const [lineIndex, setLineIndex] = useState(0);
|
||||
const line = useMemo(
|
||||
() => [...lines[lineIndex]].reverse(),
|
||||
() => (lines.length === 0 ? [master.id] : [...lines[lineIndex]].reverse()),
|
||||
[master, lineIndex],
|
||||
);
|
||||
const totalXp = line.reduce(
|
||||
|
||||
Reference in new issue
Block a user