diff --git a/apps/web/src/components/math-skills/exercise-implementations/rotate-point.tsx b/apps/web/src/components/math-skills/exercise-implementations/rotate-point.tsx index b3f8657675..ddc855b5e5 100644 --- a/apps/web/src/components/math-skills/exercise-implementations/rotate-point.tsx +++ b/apps/web/src/components/math-skills/exercise-implementations/rotate-point.tsx @@ -33,12 +33,13 @@ export function RotatePoint() { ) : data.deg === 30 ? ( <> - C ( {data.ax} + {data.len > 2 ? 0.5 * data.len : ''} + C ( {data.ax === 0 ? null : <>{data.ax} + } + {data.len > 2 ? 0.5 * data.len : ''} {buildSqrt(3)} | {Math.round(data.cy)} ) ) : ( <> - C ( {Math.round(data.cx)} | {data.ay} +{' '} + C ( {Math.round(data.cx)} | {data.ay === 0 ? null : <>{data.ay} + } {data.len > 2 ? 0.5 * data.len : ''} {buildSqrt(3)} )