Skip to content

Commit

Permalink
Merge pull request #170 from Prodeko/main
Browse files Browse the repository at this point in the history
Production debugging
  • Loading branch information
lolman420 authored Feb 9, 2025
2 parents 0c53f28 + 89c3b1f commit d9deca9
Showing 1 changed file with 19 additions and 7 deletions.
26 changes: 19 additions & 7 deletions src/app/stats/localComponents/HallOfFame/HallOfFame.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,25 @@ export const HallOfFame = async ({ ...props }: Props) => {
},
];

const req = await fetch(`${NEXT_PUBLIC_API_URL}/hof`, {
method: "GET",
headers: {
"Content-Type": "application/json",
},
});
const hofPlayersStats = await req.json();
// biome-ignore lint/suspicious/noExplicitAny: <explanation>
let hofPlayersStats: any;

try {
const req = await fetch(`${NEXT_PUBLIC_API_URL}/hof`, {
method: "GET",
headers: {
"Content-Type": "application/json",
},
});

console.log("SOME DATA:");
console.log(JSON.stringify(req, null, 2));
const hofPlayersStats = await req.json();
} catch (e) {
console.log("FAILED!!!!");
console.log(e);
}

const hofPlayers = hofIcons.map((icon, i) => {
return {
...icon,
Expand Down

0 comments on commit d9deca9

Please sign in to comment.