fix types

This commit is contained in:
2025-12-09 16:47:18 +01:00
parent 933ef56031
commit 17ab80cac9
2 changed files with 2 additions and 3 deletions
@@ -2,7 +2,6 @@
import { zodResolver } from "@hookform/resolvers/zod";
import { FormProvider, useForm } from "react-hook-form";
import Select from "react-select";
import { z } from "zod";
import TeamSelection from "@/app/[locale]/(main)/match/components/TeamSelection";
@@ -21,7 +21,7 @@ interface IProps {
clubOptions: {
value: 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 selectedId = selectedOption?.url.split("=").pop();
const selectedId = selectedOption?.url?.split("=").pop();
useEffect(() => {
const fetchPlayers = async () => {