-
Notifications
You must be signed in to change notification settings - Fork 54
Description
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:
- Go to a PDP of a product with big name
- Click on ADD TO CART
- At minicart, click on remove this product;
- Watch the return of event.data on ProductList.tsx line 66 ->
minicart/react/ProductList.tsx
Line 66 in 6c5f3a0
const adjustedItem = mapCartItemToPixel(item)
Expected behavior
The full productName, as other events comes with.
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

