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
@@ -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 () => {