fix electricienne debug model loading

This commit is contained in:
Tom Boullay
2026-05-02 10:58:00 +02:00
parent 0cb5f57182
commit c71cd35f4d
9 changed files with 38 additions and 8 deletions
@@ -21,11 +21,16 @@ export function HandTrackingDebugPanel(): React.JSX.Element | null {
}
const fist = hands.some((hand) => hand.isFist);
const modelLoaded = hands.some(
const hasLeftHand = hands.some(
(hand) => hand.handedness.toLowerCase() === "left",
)
? "gant_l"
: "none";
);
const hasRightHand = hands.some(
(hand) => hand.handedness.toLowerCase() === "right",
);
const modelLoaded =
[hasLeftHand ? "gant_l" : null, hasRightHand ? "gant_r" : null]
.filter(Boolean)
.join(", ") || "none";
return (
<section