Skip to content

productNames are cut off on removeFromCart event at minicart #314

@Giovancruz

Description

@Giovancruz

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions