Currently, the final score cards of the two users displays the user's username. We want to improve the UI by showing the user's full name instead, while keeping the username as a fallback in case the name is not available.
Required Changes:
Navigate to:
result-dashboard.tsx
Go to line 163
And replace:
With:
title={user1.name || user1.username}
And do the same for the line 169.
Expected Behavior:
If user.name exists → display the full name
If user.name is missing/null → fallback to user.username
Currently, the final score cards of the two users displays the user's username. We want to improve the UI by showing the user's full name instead, while keeping the username as a fallback in case the name is not available.
Required Changes:
Navigate to:
result-dashboard.tsx
Go to line 163
And replace:
With:
And do the same for the line 169.
Expected Behavior:
If user.name exists → display the full name
If user.name is missing/null → fallback to user.username