Bug Description
π Bug Description
In src/pages/Friends.jsx, mock follower IDs are hardcoded
using array indices for UI testing but were never removed β
causing fake followers to appear for every user.
π Location
src/pages/Friends.jsx β Line ~47
π Steps to Reproduce
- Log in with any account
- Navigate to Friends page
- See "Followers" tab shows 2 fake followers β
β
Expected Behavior
Followers tab should show real followers from Firestore,
or show empty state if no followers exist.
β Actual Behavior
Every user sees 2 fake mock followers regardless of their
actual follower data.
π‘ Fix
// β Current broken code:
if (filteredDevs.length > 2) {
setFollowerIds([filteredDevs[0].id, filteredDevs[1].id]);
}
// β
Fixed code:
Remove the mock block entirely and fetch real
follower data from Firestore instead.
π File
src/pages/Friends.jsx
Bug Description
π Bug Description
In
src/pages/Friends.jsx, mock follower IDs are hardcodedusing array indices for UI testing but were never removed β
causing fake followers to appear for every user.
π Location
src/pages/Friends.jsxβ Line ~47π Steps to Reproduce
β Expected Behavior
Followers tab should show real followers from Firestore,
or show empty state if no followers exist.
β Actual Behavior
Every user sees 2 fake mock followers regardless of their
actual follower data.
π‘ Fix
// β Current broken code:
if (filteredDevs.length > 2) {
setFollowerIds([filteredDevs[0].id, filteredDevs[1].id]);
}
// β Fixed code:
Remove the mock block entirely and fetch real
follower data from Firestore instead.
π File
src/pages/Friends.jsx