@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.
@@ -3064,7 +3064,7 @@
3064
3064
  this.postCodeForm = this.formBuilder.group({
3065
3065
  postcode: new forms.FormControl('', forms.Validators.compose([
3066
3066
  forms.Validators.required,
3067
- forms.Validators.pattern('^([A-Z]{1,2}[0-9]{1,2}[A-Z]{0,1} ?[0-9][A-Z]{2})')
3067
+ forms.Validators.pattern('^([A-Za-z]{1,2}[0-9]{1,2}[A-Za-z]{0,1} ?[0-9][A-Za-z]{2})')
3068
3068
  ]))
3069
3069
  });
3070
3070
  this.manualAddressForm = this.formBuilder.group({
@@ -3084,7 +3084,7 @@
3084
3084
  ])),
3085
3085
  mpostcode: new forms.FormControl('', forms.Validators.compose([
3086
3086
  forms.Validators.required,
3087
- forms.Validators.pattern('^([A-Z]{1,2}[0-9]{1,2}[A-Z]{0,1} ?[0-9][A-Z]{2})')
3087
+ forms.Validators.pattern('^([A-Za-z]{1,2}[0-9]{1,2}[A-Za-z]{0,1} ?[0-9][A-Za-z]{2})')
3088
3088
  ])),
3089
3089
  country: new forms.FormControl('', forms.Validators.compose([
3090
3090
  forms.Validators.required
@@ -3267,7 +3267,10 @@
3267
3267
  * @return {?}
3268
3268
  */function (refundsNotification) {
3269
3269
  _this.addressPostcodeList = refundsNotification['data']['results'];
3270
- _this.isShowPickAddress = refundsNotification['data']['results'].length > 0;
3270
+ _this.isShowPickAddress = refundsNotification['data']['header'].totalresults > 0;
3271
+ if (!_this.isShowPickAddress) {
3272
+ _this.resetForm([false, false, false, true, false, false, false, false, false, false, false, false, false], 'postcode');
3273
+ }
3271
3274
  })),
3272
3275
  ( /**
3273
3276
  * @param {?} error