diff --git a/plugins/woocommerce-blocks/assets/js/base/components/address-form/default-address-fields.js b/plugins/woocommerce-blocks/assets/js/base/components/address-form/default-address-fields.js index e5465f51aa0..4c13c371159 100644 --- a/plugins/woocommerce-blocks/assets/js/base/components/address-form/default-address-fields.js +++ b/plugins/woocommerce-blocks/assets/js/base/components/address-form/default-address-fields.js @@ -87,10 +87,7 @@ const AddressFields = { }, city: { label: __( 'City', 'woo-gutenberg-products-block' ), - optionalLabel: __( - 'Apartment, suite, etc. (optional)', - 'woo-gutenberg-products-block' - ), + optionalLabel: __( 'City (optional)', 'woo-gutenberg-products-block' ), autocomplete: 'address-level2', required: true, hidden: false, diff --git a/plugins/woocommerce-blocks/assets/js/base/hooks/shipping/use-shipping-address.js b/plugins/woocommerce-blocks/assets/js/base/hooks/shipping/use-shipping-address.js index 7764a87da26..10f74f32f94 100644 --- a/plugins/woocommerce-blocks/assets/js/base/hooks/shipping/use-shipping-address.js +++ b/plugins/woocommerce-blocks/assets/js/base/hooks/shipping/use-shipping-address.js @@ -6,6 +6,7 @@ import { useEffect, useState } from '@wordpress/element'; import isShallowEqual from '@wordpress/is-shallow-equal'; import { useDebounce } from 'use-debounce'; import { CART_STORE_KEY as storeKey } from '@woocommerce/block-data'; +import { decodeEntities } from '@wordpress/html-entities'; /** * Internal dependencies @@ -39,8 +40,16 @@ export const useShippingAddress = () => { ); } }, [ debouncedShippingAddress ] ); + + const decodedShippingAddress = {}; + Object.keys( shippingAddress ).forEach( ( key ) => { + decodedShippingAddress[ key ] = decodeEntities( + shippingAddress[ key ] + ); + } ); + return { - shippingAddress, + shippingAddress: decodedShippingAddress, setShippingAddress, }; };