Skip to content

Commit

Permalink
hotfix: remove console.log
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexandra2888 committed Nov 7, 2023
1 parent 04be463 commit 9271eb2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
3 changes: 1 addition & 2 deletions src/components/Footer/Footer.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ const Footer = () => {

const { data: getTagsListData, error, isError, isLoading } = useGetTagsListQuery();
if (isLoading) return <p>App is loading...</p>
console.log("getTagsListData: ", getTagsListData);
console.log("getTagsListData results: ", getTagsListData.results);


return (
<footer className={`${styles.footer} ${isDarkTheme ? styles['dark-footer'] : ''}`}>
Expand Down
5 changes: 2 additions & 3 deletions src/pages/home/Home.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,11 @@ const Home = () => {
const { data: allRecipesData, error, isError, isLoading } = useGetAllRecipesQuery();

if (isLoading) return <p>App is loading...</p>
console.log("allRecipesData: ", allRecipesData);
const recipe = allRecipesData;
// const recipe = useSelector((state) => state.recipe);
// const recipeResults = recipe.recipes.results;
const recipeResults = recipe.results;
console.log("RECIPE: ", recipeResults);
// const recipeResults = recipe.results;


// const dispatch = useDispatch();

Expand Down

0 comments on commit 9271eb2

Please sign in to comment.