This commit is contained in:
Naveen Kumar 2025-04-21 22:00:39 +05:30
parent 56436b58eb
commit b938e5e891

View File

@ -41,7 +41,7 @@ const Results = () => {
}
};
const fetchResults = async () => {
const fetchResults = useCallback(async () => {
try {
setLoading(true);
let data;
@ -60,7 +60,7 @@ const Results = () => {
} finally {
setLoading(false);
}
};
}, [selectedTeam]);
useEffect(() => {
const initData = async () => {