fix : show live eval when depth is > 6

This commit is contained in:
GuillaumeSD
2024-02-25 03:14:57 +01:00
parent 2af25cf4ec
commit fae1441232
2 changed files with 3 additions and 3 deletions

View File

@@ -17,7 +17,7 @@ export default function LineEvaluation({ line }: Props) {
? `Mate in ${Math.abs(line.mate)}`
: "?";
const showSkeleton = line.depth === 0;
const showSkeleton = line.depth < 6;
return (
<ListItem disablePadding>
@@ -38,7 +38,7 @@ export default function LineEvaluation({ line }: Props) {
<Typography>
{showSkeleton ? (
<Skeleton width={"30em"} variant="rounded" animation="wave" />
<Skeleton width={"20em"} variant="rounded" animation="wave" />
) : (
line.pv.slice(0, 10).map(moveLineUciToSan(board.fen())).join(", ")
)}