Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
kaushithamsilva committed Jan 28, 2024
2 parents ed69a89 + 7f81a86 commit 0a88520
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const ManagerProfile = () => {
async function fetchManagersTableData(): Promise<Manager[]> {
// Renew access Token
await renewAccessToken();
const response = await fetch(`${BASE_URL}/player/myTeams`, {
const response = await fetch(`${BASE_URL}/manager/getTeamManagers`, {
// Use the constructed URL with query params
method: "GET", // Change the method to GET
headers: {
Expand All @@ -49,7 +49,8 @@ const ManagerProfile = () => {
},
});
const responseData = await response.json();
return responseData.teams;
console.log(responseData);
return responseData;
}

if (!isInternetAvailable) {
Expand Down

0 comments on commit 0a88520

Please sign in to comment.