Skip to content

Commit

Permalink
Update Prize.jsx
Browse files Browse the repository at this point in the history
  • Loading branch information
danieleguido committed Jan 8, 2024
1 parent 471c8ab commit 7dd9349
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/Prize.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -108,10 +108,12 @@ const Prize = ({
useEffect(() => {
console.debug('[Prize] @useEffect', id, isCollected)
if (isCollected) {
colliderRef.current.setEnabled(false)
api.start({
scale: 0,
})
} else {
colliderRef.current.setEnabled(true)
api.start({
scale: scaleMin,
})
Expand Down

0 comments on commit 7dd9349

Please sign in to comment.