@hmcts/ccpay-web-component 5.0.2-beta98 → 5.0.2-beta99

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.
@@ -3067,7 +3067,7 @@ var ContactDetailsComponent = /** @class */ (function () {
3067
3067
  this.postCodeForm = this.formBuilder.group({
3068
3068
  postcode: new FormControl('', Validators.compose([
3069
3069
  Validators.required,
3070
- Validators.pattern('^([A-Z]{1,2}[0-9]{1,2}[A-Z]{0,1} ?[0-9][A-Z]{2})')
3070
+ Validators.pattern('^([A-Za-z]{1,2}[0-9]{1,2}[A-Za-z]{0,1} ?[0-9][A-Za-z]{2})')
3071
3071
  ]))
3072
3072
  });
3073
3073
  this.manualAddressForm = this.formBuilder.group({
@@ -3087,7 +3087,7 @@ var ContactDetailsComponent = /** @class */ (function () {
3087
3087
  ])),
3088
3088
  mpostcode: new FormControl('', Validators.compose([
3089
3089
  Validators.required,
3090
- Validators.pattern('^([A-Z]{1,2}[0-9]{1,2}[A-Z]{0,1} ?[0-9][A-Z]{2})')
3090
+ Validators.pattern('^([A-Za-z]{1,2}[0-9]{1,2}[A-Za-z]{0,1} ?[0-9][A-Za-z]{2})')
3091
3091
  ])),
3092
3092
  country: new FormControl('', Validators.compose([
3093
3093
  Validators.required
@@ -3271,7 +3271,10 @@ var ContactDetailsComponent = /** @class */ (function () {
3271
3271
  */
3272
3272
  function (refundsNotification) {
3273
3273
  _this.addressPostcodeList = refundsNotification['data']['results'];
3274
- _this.isShowPickAddress = refundsNotification['data']['results'].length > 0;
3274
+ _this.isShowPickAddress = refundsNotification['data']['header'].totalresults > 0;
3275
+ if (!_this.isShowPickAddress) {
3276
+ _this.resetForm([false, false, false, true, false, false, false, false, false, false, false, false, false], 'postcode');
3277
+ }
3275
3278
  })),
3276
3279
  (/**
3277
3280
  * @param {?} error