diff --git a/app/code/Magento/Customer/view/frontend/templates/form/register.phtml b/app/code/Magento/Customer/view/frontend/templates/form/register.phtml index a2ed1a8b4b92b..2122af6c96db3 100644 --- a/app/code/Magento/Customer/view/frontend/templates/form/register.phtml +++ b/app/code/Magento/Customer/view/frontend/templates/form/register.phtml @@ -342,9 +342,9 @@ script; renderTag('script', [], $scriptString, false) ?> getShowAddressFields()): ?> getRegionJson(); - $regionId = (int) $formData->getRegionId(); - $countriesWithOptionalZip = /* @noEscape */ $directoryHelper->getCountriesWithOptionalZip(true); + $regionJson = $directoryHelper->getRegionJson(); + $regionId = (int)$formData->getRegionId(); + $countriesWithOptionalZip = $directoryHelper->getCountriesWithOptionalZip(true); ?>