Skip to content

Commit

Permalink
fix: typo
Browse files Browse the repository at this point in the history
  • Loading branch information
dan-rpm committed Dec 17, 2024
1 parent 6b30b41 commit 0c50d03
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/Avatar/Avatar.component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ const Avatar: FC<AvatarProps> = ({

return halfBody ? CAMERA.CONTROLS.HALF_BODY.MIN_DISTANCE : CAMERA.CONTROLS.FULL_BODY.MIN_DISTANCE;
}, [controlsMinDistance, halfBody]);
const cameraControlsMsxDistance = useMemo(() => {
const cameraControlsMaxDistance = useMemo(() => {
if (controlsMaxDistance) {
return controlsMaxDistance;
}
Expand All @@ -343,7 +343,7 @@ const Avatar: FC<AvatarProps> = ({
cameraInitialDistance={cameraInitialDistance}
cameraZoomTarget={cameraZoomTarget}
controlsMinDistance={cameraControlsMinDistance}
controlsMaxDistance={cameraControlsMsxDistance}
controlsMaxDistance={cameraControlsMaxDistance}
updateCameraTargetOnZoom={!halfBody}
/>
{AvatarModel}
Expand Down

0 comments on commit 0c50d03

Please sign in to comment.