Skip to content

Commit c575833

Browse files
committed
update
1 parent 27b5a10 commit c575833

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

src/hooks/Queries/shop/useSwagList.jsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ const fetchSwag = async () => {
77
const response = await publicAxios.get("/swaggsnew");
88
return response.data;
99
} catch (error) {
10-
console.log(error);
1110
toast.error("Error fetching swag list");
1211
throw error;
1312
}
@@ -42,7 +41,6 @@ const fetchSwagCategories = async () => {
4241
const response = await publicAxios.get("/product-categories");
4342
return response.data;
4443
} catch (error) {
45-
console.log(error);
4644
toast.error("Error fetching swag list");
4745
throw error;
4846
}

src/pages/shop/sections/Banner/Carousal.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ function Carousel() {
5353
>
5454
<div className="flex -ml-2.5 h-full">
5555
{isSuccess &&
56-
swagList?.map(({ attributes, name, id }, i) => {
56+
swagList?.map(({ attributes, name, id }) => {
5757
const attributeWithImages = attributes.find(
5858
(attribute) => attribute.images.length > 0
5959
);

src/pages/shop/sections/FilterSection.jsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,4 +64,5 @@ export default FilterSection;
6464

6565
CategoryItem.propTypes = {
6666
name: PropTypes.string.isRequired,
67+
slug: PropTypes.string.isRequired,
6768
};

0 commit comments

Comments
 (0)