From 1298ab1b08c7a1351c493bed8d6052a8cb963891 Mon Sep 17 00:00:00 2001 From: Pilar Candia Date: Mon, 28 Oct 2024 14:46:08 -0400 Subject: [PATCH] [5.4] MSTR-326: Do not require billing address when updating the timezone/language in accounts (#1249) --- src/apps/myaccount/app.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/apps/myaccount/app.js b/src/apps/myaccount/app.js index 63075ae99..6ae131ebd 100644 --- a/src/apps/myaccount/app.js +++ b/src/apps/myaccount/app.js @@ -882,7 +882,9 @@ define(function(require) { } } } else if (type === 'account') { - delete params.data.contact.billing.region_select; + if (_.get(params.data, 'contact.billing.region_select')) { + delete params.data.contact.billing.region_select; + } if (_.get(params.data, ['braintree', 'surcharge_accepted'], '') === '') { _.unset(params.data, 'braintree');