Skip to content

Commit

Permalink
Merge pull request #139 from vtex-apps/bugfix/WISHLIST-62_fixed-fille…
Browse files Browse the repository at this point in the history
…d-heart-for-unfavorited-items

[WISHLIST-62] Fix filled heart for unfavorited
  • Loading branch information
auroraaaashen authored Nov 23, 2022
2 parents e695166 + 61d4ce3 commit b713eec
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

### Fixed

- Fixed lazyload inlist data cause unfavorited item shows favorited without refresh

### Fixed

- Fixed the return url after login to include the search field

### Changed
Expand Down
4 changes: 3 additions & 1 deletion react/AddProductBtn.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,9 @@ const AddBtn: FC<AddBtnProps> = ({ toastURL = '/account/#wishlist' }) => {
(item: any) => item.productId === productId && item.sku === sku
) === undefined
) {
addWishlisted(productId, sku)
if (productId && sku) {
addWishlisted(productId, sku)
}
}
}

Expand Down

0 comments on commit b713eec

Please sign in to comment.