Skip to content

Commit

Permalink
Merge pull request #188 from vtex-apps/fix/masked-pickupInfo-PII-account
Browse files Browse the repository at this point in the history
change object to read pickupStoreInfo
  • Loading branch information
jeffersontuc authored Dec 12, 2023
2 parents 36e7131 + fd2c3ef commit 4af5b72
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

## [Unreleased]

### Fixed
- Unmask data for pickup point address.

## [2.17.1] - 2023-10-11

### Fixed
Expand Down
8 changes: 6 additions & 2 deletions react/components/PickUpHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,11 @@ const StorePickUpHeader: FC<Props> = ({ shippingData, index, numPackages }) => {
const handles = useCssHandles(CSS_HANDLES)
const multiplePickups = numPackages > 1
const { receiverName } = shippingData.address
const { additionalInfo } = shippingData.selectedSlaObj.pickupStoreInfo
const {
additionalInfo,
address,
} = shippingData.selectedSlaObj.pickupStoreInfo

return (
<Fragment>
<div
Expand Down Expand Up @@ -61,7 +65,7 @@ const StorePickUpHeader: FC<Props> = ({ shippingData, index, numPackages }) => {
<FormattedMessage id="store/shipping.header.address" />
</span>
<div className={`${handles.packageAddressWrapper} mb5 mr10-m`}>
<Address address={shippingData.address} pickup={shippingData} />
<Address address={address} pickup={shippingData} />
</div>
<div className={`${handles.packageReceiver} c-on-base lh-copy`}>
<p className={`${handles.packageReceiverName}`}>{receiverName}</p>
Expand Down

0 comments on commit 4af5b72

Please sign in to comment.