1
0
mirror of https://github.com/bitwarden/browser synced 2024-12-25 09:32:06 +01:00

Clear VAT/GST info when box is unchecked (#6338)

This commit is contained in:
Alex Morask 2023-09-27 10:57:50 -04:00 committed by GitHub
parent c5475f78ea
commit fe0ef5aad7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -125,14 +125,22 @@ export class TaxInfoComponent {
getTaxInfoRequest(): TaxInfoUpdateRequest {
if (this.organizationId) {
const request = new OrganizationTaxInfoUpdateRequest();
request.taxId = this.taxInfo.taxId;
request.state = this.taxInfo.state;
request.line1 = this.taxInfo.line1;
request.line2 = this.taxInfo.line2;
request.city = this.taxInfo.city;
request.state = this.taxInfo.state;
request.postalCode = this.taxInfo.postalCode;
request.country = this.taxInfo.country;
request.postalCode = this.taxInfo.postalCode;
if (this.taxInfo.includeTaxId) {
request.taxId = this.taxInfo.taxId;
request.line1 = this.taxInfo.line1;
request.line2 = this.taxInfo.line2;
request.city = this.taxInfo.city;
request.state = this.taxInfo.state;
} else {
request.taxId = null;
request.line1 = null;
request.line2 = null;
request.city = null;
request.state = null;
}
return request;
} else {
const request = new TaxInfoUpdateRequest();