SalesforceCommerceCloud / commerce-sdk-isomorphic

Browser & Node.js JavaScript client for B2C Commerce API
https://salesforcecommercecloud.github.io/commerce-sdk-isomorphic/
BSD 3-Clause "New" or "Revised" License
43 stars 21 forks source link

[Bug] Fix dnt flag #170

Closed kevinxh closed 2 months ago

kevinxh commented 2 months ago

There was a bug when the dnt flag is set to false, it will be omitted. This isn't what we want. This PR is to fix this issue.

before

...(parameters.dnt && {dnt: parameters.dnt.toString()}),

after

...(parameters.dnt !== undefined && {dnt: parameters.dnt.toString()}),