Skip to content

Commit 4d09dd6

Browse files
committed
fix syntax error adding an array instead of an object when promoting a collided hovered entity
1 parent 7068ffe commit 4d09dd6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -531,7 +531,7 @@ AFRAME.registerComponent('super-hands', {
531531
this.hoverEls.splice(hoverIndex, 1)
532532
const sect = this.hoverElsIntersections.splice(hoverIndex, 1)
533533
this.hoverEls.push(el)
534-
this.hoverElsIntersections.push(sect)
534+
this.hoverElsIntersections.push(sect[0])
535535
}
536536
}
537537
})

0 commit comments

Comments
 (0)