diff --git a/CHANGELOG.md b/CHANGELOG.md index 205f94cb14..bdac49926f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,7 +3,7 @@ ## Draft - Add translation key for "read more" blog post link [#1625](https://github.com/bigcommerce/cornerstone/pull/1625) - Update My Account Payment Methods template to expose all new savable payment methods [1603](https://github.com/bigcommerce/cornerstone/pull/1603) - +- Proper address formatting without any additional commas in My Account Payment Methods [1626](https://github.com/bigcommerce/cornerstone/pull/1626) ## 4.3.1 (2020-01-17) - Resolve visual regression in error modal icon animation [#1619](https://github.com/bigcommerce/cornerstone/pull/1619) diff --git a/templates/components/account/payment-methods-list.html b/templates/components/account/payment-methods-list.html index 6e1f492953..63eadd4fb6 100644 --- a/templates/components/account/payment-methods-list.html +++ b/templates/components/account/payment-methods-list.html @@ -52,7 +52,13 @@

{{!-- If there is an address STARTS --}}

{{lang 'account.payment_methods.billing_address'}}: - {{billing_address.address1}}, {{billing_address.address2}}, {{billing_address.city}}, {{billing_address.state}}, {{billing_address.zip}}, {{billing_address.country}} + + {{billing_address.address1}}, + {{#if billing_address.address2}} + {{billing_address.address2}}, + {{/if}} + {{billing_address.city}}, {{billing_address.state}}, {{billing_address.zip}}, {{billing_address.country}} +

{{!-- If there is an address ENDS --}}