Add a description of the k-factor

This commit is contained in:
Timothy Armes
2023-09-19 10:09:21 +02:00
parent 0b7a994052
commit a82616bd34
5 changed files with 105 additions and 24 deletions
+4
View File
@@ -12,6 +12,8 @@ import { SelectField } from "@/components/form/SelectField";
import { TextField } from "@/components/form/TextField";
import { getNewRating } from "@/utils/eloCalculator";
import { KFactor } from "./KFactor";
const resultsSchema = z.object({
currentElo: z.number().int().positive(),
kFactor: z.enum(["40", "30", "20", "15", "10"]),
@@ -122,6 +124,8 @@ export const ManualEloForm = () => {
/>
</div>
<KFactor className="mt-2" />
<h3 className="my-4 text-lg text-gray-900 dark:text-white">
{t("resultsTitle")}
</h3>