This commit is contained in:
@ -34,6 +34,7 @@ export default function Home() {
|
||||
)
|
||||
.then((res) => res.json())
|
||||
.then((res) => res.players.find((player: any) => player.rank === rank));
|
||||
console.log(playerAtRank);
|
||||
|
||||
if (!playerAtRank) {
|
||||
console.log("Player not found");
|
||||
@ -49,6 +50,7 @@ export default function Home() {
|
||||
setMounted(true);
|
||||
|
||||
updateRank();
|
||||
setInterval(updateRank, 1000 * 60 * 1); // update every minute
|
||||
}, [mounted, updateRank]);
|
||||
|
||||
return (
|
||||
|
Reference in New Issue
Block a user