This commit is contained in:
parent
e3b37358b9
commit
80eb7a17fe
@ -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 (
|
||||
|
Loading…
x
Reference in New Issue
Block a user