diff --git a/src/app/page.tsx b/src/app/page.tsx index 85d169c..573e3e6 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -53,12 +53,23 @@ export default function Home() { setInterval(updateRank, 1000 * 60 * 1); // update every minute }, [mounted, updateRank]); - /** - * {!playerId &&

Invalid player ID

} - {!rank &&

Invalid rank

} - {!ppDiff &&

Calculating...

} - */ - if (!playerId || !rank || !ppDiff) { + if (!playerId) { + return ( +
+

Invalid or missing player ID

+
+ ); + } + + if (!rank) { + return ( +
+

Invalid or missing rank

+
+ ); + } + + if (!ppDiff) { return (

Calculating...