Handle undefined locomotionState in App.tsx

This commit is contained in:
2026-04-11 18:41:46 +02:00
parent f83e2dc960
commit d6c021616a

View File

@@ -1227,6 +1227,10 @@ function formatRunnerGroundContact(
return "No ground";
}
if (locomotionState === undefined) {
return "n/a";
}
const slope = locomotionState.contact.slopeDegrees;
const distance = locomotionState.contact.groundDistance;