Skip to content

Commit

Permalink
fix: 🐛 Qualchecks => 600 instead of 500
Browse files Browse the repository at this point in the history
  • Loading branch information
ThaNightHawk committed Mar 12, 2023
1 parent 7febbdf commit 89acf43
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/pages/qualscheck.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ import Header from "@comp/Meta/Title";
import PageHeader from "@comp/UI/General/PageHeader";
import { Success, Error } from "@comp/UI/General/Notifiers";

const rankNumber: number = 600;

export default function Team() {
const [url, setUrl] = useState<string>("");
const [id1, setId1] = useState<string>("");
Expand Down Expand Up @@ -36,12 +38,12 @@ export default function Team() {
if (skillSaberData2.errorMessage) {
return Error({ text: "Control Player 2 ID" });
}
if (skillSaberData1.rank + skillSaberData2.rank <= 500) {
if (skillSaberData1.rank + skillSaberData2.rank <= rankNumber) {
return Error({
text: `<b>${skillSaberData1.name}</b></br> <b>${
skillSaberData2.name
}</b><br> Exceeds the limit by: <br> <b>${
500 - (skillSaberData1.rank + skillSaberData2.rank)
rankNumber - (skillSaberData1.rank + skillSaberData2.rank)
}</b> ranks!`,
});
} else {
Expand All @@ -68,7 +70,8 @@ export default function Team() {
<div className="px-4 py-5 sm:px-6">
<p className="rulesInfoHeader">Rank checker</p>
<p className="text-gray-900 dark:text-white text-[18px] mt-2">
Check to see, if you&apos;re allowed to team up with a specific player!
Check to see, if you&apos;re allowed to team up with a specific
player!
</p>
</div>
<header className="relative z-20 flex items-center justify-center border-gray-200 py-4 px-6 lg:flex-none">
Expand Down

0 comments on commit 89acf43

Please sign in to comment.