Multiple places hardcode the username:
WalletContext.tsx line 132: setUser({ username: "Alex" }) — set during authenticate()
WalletContext.tsx line 158: setUser({ username: "Alex" }) — set during handleModalSuccess()
profile/page.tsx line 22: username: "You_Arena"
settings/page.tsx line 88: const [username, setUsername] = useState("You_Arena")
Every user sees the same username everywhere.
Fix Required
- Resolve the real display name from the backend (or derive a short handle from the wallet address).
- Until a backend-provided username exists, derive a default from the wallet address (e.g.
G...${address.slice(-6)}).
- Remove all hardcoded
"Alex" and "You_Arena" strings.
Files to change:
frontend/src/context/WalletContext.tsx
frontend/src/app/(authenticated)/profile/page.tsx
frontend/src/app/(authenticated)/settings/page.tsx
Summary Table
| # |
Type |
Priority |
File(s) |
Description |
| 1 |
🐛 Bug |
🔴 High |
WalletContext.tsx |
Wallet connect redirects to /dashboard |
| 2 |
🐛 Bug |
🟡 Med |
WalletContext.tsx |
logout missing router dep |
| 3 |
🐛 Bug |
🟢 Low |
ConnectWalletModal.tsx |
Wrong success copy |
| 4 |
🐛 Bug |
🔴 High |
wallet/page.tsx |
Hardcoded placeholder address |
| 5 |
🐛 Bug |
🟡 Med |
wallet/page.tsx |
Disconnect button no-op |
| 6 |
🐛 Bug |
🔴 High |
settings/page.tsx |
Disconnect confirm doesn't disconnect |
| 7 |
🐛 Bug |
🟡 Med |
settings/page.tsx |
Sidebar active state hardcoded |
| 8 |
🐛 Bug |
🟡 Med |
events/page.tsx |
Search input uncontrolled |
| 9 |
🐛 Bug |
🟡 Med |
events/page.tsx |
Tab filter does nothing |
| 10 |
🐛 Bug |
🟢 Low |
events/page.tsx |
Hero buttons no-op |
| 11 |
🐛 Bug |
🟢 Low |
events/page.tsx |
Duplicate SVG gradient IDs |
| 12 |
🐛 Bug |
🔴 High |
app/page.tsx |
next/head in App Router |
| 13 |
🐛 Bug |
🟢 Low |
dashboard/page.tsx |
Quick Actions rendered twice |
| 14 |
🐛 Bug |
🟡 Med |
Header.tsx |
/leaderboard vs /leaderboards mismatch |
| 15 |
🐛 Bug |
🟢 Low |
profile/page.tsx |
Dead href="#" links |
| 16 |
🐛 Bug |
🔴 High |
profile/page.tsx |
Hardcoded Stellar address |
| 17 |
🐛 Bug |
🔴 High |
WalletContext.tsx |
Auth not persisted on refresh |
| 18 |
🐛 Bug |
🟡 Med |
settings/page.tsx |
Export data no-op |
| 19 |
✨ Enhancement |
🔴 High |
markets/page.tsx |
Markets page is empty placeholder |
| 20 |
✨ Enhancement |
🔴 High |
dashboard/page.tsx |
All stats hardcoded |
| 21 |
✨ Enhancement |
🔴 High |
profile/page.tsx |
All profile data hardcoded |
| 22 |
✨ Enhancement |
🔴 High |
wallet/page.tsx |
Transactions hardcoded |
| 23 |
✨ Enhancement |
🔴 High |
(new) /admin |
Admin dashboard missing entirely |
| 24 |
✨ Enhancement |
🟡 Med |
(new) markets/create |
No create market page |
| 25 |
✨ Enhancement |
🟡 Med |
(new) markets/[id] |
No market detail/prediction page |
| 26 |
✨ Enhancement |
🟡 Med |
(new) /notifications |
No notifications page |
| 27 |
✨ Enhancement |
🟡 Med |
my-predictions/page.tsx |
No real data or filters |
| 28 |
✨ Enhancement |
🟢 Low |
profile + wallet pages |
No skeleton loaders |
| 29 |
✨ Enhancement |
🔴 High |
Context + profile + settings |
Username hardcoded everywhere |
Last updated: 2026-05-26 — Generated from source audit of frontend/src
Multiple places hardcode the username:
WalletContext.tsxline 132:setUser({ username: "Alex" })— set duringauthenticate()WalletContext.tsxline 158:setUser({ username: "Alex" })— set duringhandleModalSuccess()profile/page.tsxline 22:username: "You_Arena"settings/page.tsxline 88:const [username, setUsername] = useState("You_Arena")Every user sees the same username everywhere.
Fix Required
G...${address.slice(-6)})."Alex"and"You_Arena"strings.Files to change:
frontend/src/context/WalletContext.tsxfrontend/src/app/(authenticated)/profile/page.tsxfrontend/src/app/(authenticated)/settings/page.tsxSummary Table
WalletContext.tsx/dashboardWalletContext.tsxlogoutmissingrouterdepConnectWalletModal.tsxwallet/page.tsxwallet/page.tsxsettings/page.tsxsettings/page.tsxevents/page.tsxevents/page.tsxevents/page.tsxevents/page.tsxapp/page.tsxnext/headin App Routerdashboard/page.tsxHeader.tsx/leaderboardvs/leaderboardsmismatchprofile/page.tsxhref="#"linksprofile/page.tsxWalletContext.tsxsettings/page.tsxmarkets/page.tsxdashboard/page.tsxprofile/page.tsxwallet/page.tsx/adminmarkets/createmarkets/[id]/notificationsmy-predictions/page.tsxLast updated: 2026-05-26 — Generated from source audit of
frontend/src