diff --git a/scripts/recalculate-all-points.ts b/scripts/recalculate-all-points.ts index 808c9a2d..1d0a4782 100644 --- a/scripts/recalculate-all-points.ts +++ b/scripts/recalculate-all-points.ts @@ -92,7 +92,7 @@ async function recalculatePoints() { // Fetch projects subcollection const projectsRef = collection(db, 'members', uid, 'projects'); const projectsSnap = await getDocs(projectsRef); - let projectCount = projectsSnap.size; + const projectCount = projectsSnap.size; let totalStars = 0; projectsSnap.forEach((p) => { totalStars += (p.data().stars || []).length; diff --git a/src/components/profile/UserProfile.tsx b/src/components/profile/UserProfile.tsx index 68af6479..82385ccf 100644 --- a/src/components/profile/UserProfile.tsx +++ b/src/components/profile/UserProfile.tsx @@ -335,8 +335,8 @@ export default function UserProfile() { const users = await Promise.all( uids.map(async (uid) => { // Try members first - let docRef = doc(db, 'members', uid); - let snap = await getDoc(docRef); + const docRef = doc(db, 'members', uid); + const snap = await getDoc(docRef); if (snap.exists()) { return { uid: snap.id, ...snap.data() }; diff --git a/src/components/ui/InteractiveBackground.tsx b/src/components/ui/InteractiveBackground.tsx index 73a2e49b..b1c16f35 100644 --- a/src/components/ui/InteractiveBackground.tsx +++ b/src/components/ui/InteractiveBackground.tsx @@ -163,7 +163,7 @@ export default function InteractiveBackground() { let animationFrameId: number; let lines: TypeLine[] = []; - let logoAngle = 0; + const logoAngle = 0; let frame = 0; // Logo instances — scattered, slow spin, very subtle