Skip to content

Commit

Permalink
add solution
Browse files Browse the repository at this point in the history
  • Loading branch information
AnastasiiaKorolko committed Nov 16, 2024
1 parent 08f1205 commit 32fa221
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/modules/AccessoriesPage/AccessoriesPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,9 @@ export const AccessoriesPage: React.FC = () => {
newParams.delete('query');
}

newParams.set('page', '1');
debouncedSetParams(newParams)

debouncedSetParams(newParams);
},
[searchParams, debouncedSetParams],
Expand Down
2 changes: 1 addition & 1 deletion src/modules/CartPage/CartPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ export const CartPage: React.FC = () => {
x
</button>
<img
src={`/${item.product.image}`}
src={`${item.product.image}`}
alt={item.product.name}
className={styles.productCart__image}
/>
Expand Down

0 comments on commit 32fa221

Please sign in to comment.