mirror of
https://github.com/TheRealOwenRees/echecsfrance.git
synced 2026-07-23 04:26:57 +00:00
fix types
This commit is contained in:
@@ -2,7 +2,6 @@
|
|||||||
|
|
||||||
import { zodResolver } from "@hookform/resolvers/zod";
|
import { zodResolver } from "@hookform/resolvers/zod";
|
||||||
import { FormProvider, useForm } from "react-hook-form";
|
import { FormProvider, useForm } from "react-hook-form";
|
||||||
import Select from "react-select";
|
|
||||||
import { z } from "zod";
|
import { z } from "zod";
|
||||||
|
|
||||||
import TeamSelection from "@/app/[locale]/(main)/match/components/TeamSelection";
|
import TeamSelection from "@/app/[locale]/(main)/match/components/TeamSelection";
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ interface IProps {
|
|||||||
clubOptions: {
|
clubOptions: {
|
||||||
value: string;
|
value: string;
|
||||||
label: string;
|
label: string;
|
||||||
url: string;
|
url: string | undefined;
|
||||||
}[];
|
}[];
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -42,7 +42,7 @@ const TeamSelection = ({ name, label, clubOptions }: IProps) => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
const selectedOption = clubOptions.find((c) => c.value === selectedDbId);
|
const selectedOption = clubOptions.find((c) => c.value === selectedDbId);
|
||||||
const selectedId = selectedOption?.url.split("=").pop();
|
const selectedId = selectedOption?.url?.split("=").pop();
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
const fetchPlayers = async () => {
|
const fetchPlayers = async () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user