Skip to content

Commit

Permalink
[5.4] MSTR-326: Do not require billing address when updating the time…
Browse files Browse the repository at this point in the history
…zone/language in accounts (#1249)
  • Loading branch information
pcandia authored Oct 28, 2024
1 parent 57f531f commit 1298ab1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/apps/myaccount/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit 1298ab1

Please sign in to comment.