We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bb332d3 commit e72f32aCopy full SHA for e72f32a
1 file changed
src/components/BouncyCat/BouncyCat.tsx
@@ -49,7 +49,7 @@ export function BouncyCat({ totalCatCount = 1 }: BouncyCatProps) {
49
newPosition.y += velocity.y;
50
51
// Bounce off walls
52
- let newVelocity = { ...velocity };
+ const newVelocity = { ...velocity };
53
54
// Left and right walls
55
if (newPosition.x <= 0 || newPosition.x >= window.innerWidth - catSize) {
0 commit comments