Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
bugswritter committed Aug 6, 2024
1 parent 27b5a10 commit c575833
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 0 additions & 2 deletions src/hooks/Queries/shop/useSwagList.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ const fetchSwag = async () => {
const response = await publicAxios.get("/swaggsnew");
return response.data;
} catch (error) {
console.log(error);
toast.error("Error fetching swag list");
throw error;
}
Expand Down Expand Up @@ -42,7 +41,6 @@ const fetchSwagCategories = async () => {
const response = await publicAxios.get("/product-categories");
return response.data;
} catch (error) {
console.log(error);
toast.error("Error fetching swag list");
throw error;
}
Expand Down
2 changes: 1 addition & 1 deletion src/pages/shop/sections/Banner/Carousal.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ function Carousel() {
>
<div className="flex -ml-2.5 h-full">
{isSuccess &&
swagList?.map(({ attributes, name, id }, i) => {
swagList?.map(({ attributes, name, id }) => {
const attributeWithImages = attributes.find(
(attribute) => attribute.images.length > 0
);
Expand Down
1 change: 1 addition & 0 deletions src/pages/shop/sections/FilterSection.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,4 +64,5 @@ export default FilterSection;

CategoryItem.propTypes = {
name: PropTypes.string.isRequired,
slug: PropTypes.string.isRequired,
};

0 comments on commit c575833

Please sign in to comment.