Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MSTR-326: Do not require billing address when updating the timezone/language in accounts #1247

Merged
merged 1 commit into from
Oct 28, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
MSTR-326: Do not require billing address when updating the timezone/l…
…anguage in accounts
  • Loading branch information
pcandia committed Oct 28, 2024
commit 3f3d6abe56172bffafd20c99eb0326c97c4552f1
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