Skip to content

Commit

Permalink
Display username instead of email for listing
Browse files Browse the repository at this point in the history
  • Loading branch information
chennisden committed Jun 13, 2024
1 parent 1c4a6cf commit b99f93d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/hooks/api.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ export class api {

public async getUserById(userId: string | undefined): Promise<string> {
const response = await this.api.get(`/users/${userId}`);
return response.data.email;
return response.data.username;
}
public async getRobots(): Promise<Robot[]> {
try {
Expand Down

0 comments on commit b99f93d

Please sign in to comment.