mirror of
https://github.com/TheRealOwenRees/echecsfrance.git
synced 2026-07-23 12:36:57 +00:00
fix types
This commit is contained in:
@@ -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 () => {
|
||||
|
||||
Reference in New Issue
Block a user