Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sqwatato committed Aug 29, 2023
1 parent 60dea07 commit 729dbab
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion components/home/Search.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ async function fetchData(): Promise<PetCardProps[]> {
const response = await api.get('opportunities/');
const data = response.data;
console.log(data)
return data.results;
return data;
} catch (error) {
console.error(error);
return [];
Expand Down Expand Up @@ -43,6 +43,7 @@ const Search = (props: any) => {

useEffect(() => {
fetchData().then((data) => setPets(data));
console.log("pet",pets);
}, []);

function getBreeds(animal: string) {
Expand Down

0 comments on commit 729dbab

Please sign in to comment.