Skip to content

Commit

Permalink
PR feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
vmarta committed Mar 14, 2023
1 parent 6bd9593 commit 3c47cf8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const AccountWishlist = () => {

const {data: productsData, isLoading: isProductsLoading} = useProducts(
{parameters: {ids: productIds?.join(','), allImages: true}},
{enabled: Boolean(productIds)}
{enabled: productIds?.length > 0}
)

const wishListItems = wishListData?.customerProductListItems?.map((item, i) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ const WishlistSecondaryButtonGroup = ({productListItemId, onClick = noop}) => {
const endRemoval = () => {
onClick('')
}
const handleItemRemove = async () => {
const handleItemRemove = () => {
startRemoval()
deleteCustomerProductListItem.mutate(
{
Expand Down

0 comments on commit 3c47cf8

Please sign in to comment.