mirror of
https://github.com/bitwarden/browser
synced 2025-12-20 02:03:39 +00:00
[PM-13999] Show estimated tax for taxable countries (#12145)
This commit is contained in:
@@ -109,9 +109,7 @@ export class SetupComponent implements OnInit, OnDestroy {
|
||||
try {
|
||||
this.formGroup.markAllAsTouched();
|
||||
|
||||
const formIsValid = this.formGroup.valid && this.manageTaxInformationComponent.touch();
|
||||
|
||||
if (!formIsValid) {
|
||||
if (!this.manageTaxInformationComponent.validate() || !this.formGroup.valid) {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -129,14 +127,11 @@ export class SetupComponent implements OnInit, OnDestroy {
|
||||
|
||||
request.taxInfo.country = taxInformation.country;
|
||||
request.taxInfo.postalCode = taxInformation.postalCode;
|
||||
|
||||
if (taxInformation.includeTaxId) {
|
||||
request.taxInfo.taxId = taxInformation.taxId;
|
||||
request.taxInfo.line1 = taxInformation.line1;
|
||||
request.taxInfo.line2 = taxInformation.line2;
|
||||
request.taxInfo.city = taxInformation.city;
|
||||
request.taxInfo.state = taxInformation.state;
|
||||
}
|
||||
request.taxInfo.taxId = taxInformation.taxId;
|
||||
request.taxInfo.line1 = taxInformation.line1;
|
||||
request.taxInfo.line2 = taxInformation.line2;
|
||||
request.taxInfo.city = taxInformation.city;
|
||||
request.taxInfo.state = taxInformation.state;
|
||||
|
||||
const provider = await this.providerApiService.postProviderSetup(this.providerId, request);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user