add usage instead of saying missing values
All checks were successful
Publish / deploy (push) Successful in 44s
All checks were successful
Publish / deploy (push) Successful in 44s
This commit is contained in:
parent
58149a8061
commit
394e65d0da
@ -53,25 +53,24 @@ export default function Home() {
|
|||||||
setInterval(updateRank, 1000 * 60 * 1); // update every minute
|
setInterval(updateRank, 1000 * 60 * 1); // update every minute
|
||||||
}, [mounted, updateRank]);
|
}, [mounted, updateRank]);
|
||||||
|
|
||||||
if (!playerId) {
|
if (!playerId || !rank) {
|
||||||
return (
|
return (
|
||||||
<main className="text-xl text-white">
|
<main className="text-xl p-2 text-black">
|
||||||
<p>Invalid or missing player ID</p>
|
<p>
|
||||||
</main>
|
Usage:{" "}
|
||||||
);
|
<span className="text-blue-500">
|
||||||
}
|
<a href="https://git.fascinated.cc/Fascinated/scoresaber-pp-to-rank-overlay#usage">
|
||||||
|
https://git.fascinated.cc/Fascinated/scoresaber-pp-to-rank-overlay#usage
|
||||||
if (!rank) {
|
</a>
|
||||||
return (
|
</span>
|
||||||
<main className="text-xl text-white">
|
</p>
|
||||||
<p>Invalid or missing rank</p>
|
|
||||||
</main>
|
</main>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!ppDiff) {
|
if (!ppDiff) {
|
||||||
return (
|
return (
|
||||||
<main className="text-xl text-white">
|
<main className="text-xl p-2 text-white">
|
||||||
<p>Calculating...</p>
|
<p>Calculating...</p>
|
||||||
</main>
|
</main>
|
||||||
);
|
);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user