@hmcts/rpx-xui-common-lib 1.9.0-address-non-postcode-2 → 1.9.0-address-non-postcode-3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4934,9 +4934,13 @@
4934
4934
  };
4935
4935
  WriteAddressFieldComponent.prototype.ngOnChanges = function (changes) {
4936
4936
  var addressChange = changes['addressField'];
4937
+ var internationalChange = changes['isInternational'];
4937
4938
  if (addressChange) {
4938
4939
  this.setFormValue();
4939
4940
  }
4941
+ if (internationalChange && this.addressFormGroup && this.addressFormGroup.get('ukAddress')) {
4942
+ this.addressFormGroup.get('ukAddress').patchValue(this.isInternational ? 'no' : 'yes');
4943
+ }
4940
4944
  this.checkIfErrorsNeeded();
4941
4945
  };
4942
4946
  WriteAddressFieldComponent.prototype.checkIfErrorsNeeded = function () {