diff --git a/src/react-components/avatar-selector.js b/src/react-components/avatar-selector.js index 528d5b81558e37f12aea6a0182c4cc08d8971782..6ae6ab6ac91110ae8cc65b9d5b5f2db8d075f911 100644 --- a/src/react-components/avatar-selector.js +++ b/src/react-components/avatar-selector.js @@ -39,7 +39,7 @@ class AvatarSelector extends Component { // so we need to force it here. const currRot = this.animation.parentNode.getAttribute("rotation"); const currY = currRot.y; - const toRot = String.split(this.animation.attributes.to.value, " "); + const toRot = this.animation.getAttribute("to").split(" "); const toY = toRot[1]; const step = 360.0 / this.props.avatars.length; const brokenlyBigRotation = Math.abs(toY - currY) > 3 * step;