diff --git a/frontend/src/hooks/api.tsx b/frontend/src/hooks/api.tsx index d0af356e..09cdc04f 100644 --- a/frontend/src/hooks/api.tsx +++ b/frontend/src/hooks/api.tsx @@ -183,7 +183,7 @@ export class api { public async getUserById(userId: string | undefined): Promise { const response = await this.api.get(`/users/${userId}`); - return response.data.email; + return response.data.username; } public async getRobots(): Promise { try {