fix: inclusive master

This commit is contained in:
TrèsAbhi committed 2024-10-09 10:49:59 -05:00
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(