Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

productNames are cut off on removeFromCart event at minicart #314

Open
Giovancruz opened this issue Jul 29, 2022 · 0 comments
Open

productNames are cut off on removeFromCart event at minicart #314

Giovancruz opened this issue Jul 29, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@Giovancruz
Copy link

Describe the bug
We are watching the vtex:removeFromCart event to mount an custom datalayer for send to our partners.

We notice that when this event commes from an minicart removal, and only in this event, the productName available with this return are sliced at char 66.

To Reproduce
Steps to reproduce the behavior:

  1. Go to a PDP of a product with big name
  2. Click on ADD TO CART
  3. At minicart, click on remove this product;
  4. Watch the return of event.data on ProductList.tsx line 66 ->
    const adjustedItem = mapCartItemToPixel(item)

Expected behavior
The full productName, as other events comes with.

Screenshots
image
image

Desktop environment:
System:
OS: Linux 5.14 Ubuntu 20.04.4 LTS (Focal Fossa)
CPU: (8) x64 11th Gen Intel(R) Core(TM) i5-1145G7 @ 2.60GHz
Memory: 1.40 GB / 15.03 GB
Container: Yes
Shell: 5.8 - /usr/bin/zsh
Binaries:
Node: 14.18.1 - ~/.nvm/versions/node/v14.18.1/bin/node
Yarn: 1.22.19 - ~/.nvm/versions/node/v14.18.1/bin/yarn
npm: 6.14.15 - ~/.nvm/versions/node/v14.18.1/bin/npm
Browsers:
Chrome: 103.0.5060.134
Firefox: 103.0

Additional context
VTEX-IO

@Giovancruz Giovancruz added the bug Something isn't working label Jul 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant