@hmcts/ccpay-web-component 5.0.1-beta161 → 5.0.1-beta162

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.
@@ -3762,9 +3762,14 @@ var CaseTransactionsComponent = /** @class */ (function () {
3762
3762
  }
3763
3763
  this.excReference = this.paymentLibComponent.EXC_REFERENCE;
3764
3764
  this.takePayment = this.paymentLibComponent.TAKEPAYMENT;
3765
- this.servicerequest = this.paymentLibComponent.SERVICEREQUEST.toString();
3766
- if (this.paymentLibComponent.SERVICEREQUEST.toString() === 'true') {
3767
- this.serviceRequestValue = 'true';
3765
+ if (this.paymentLibComponent.SERVICEREQUEST !== undefined) {
3766
+ this.servicerequest = this.paymentLibComponent.SERVICEREQUEST.toString();
3767
+ if (this.paymentLibComponent.SERVICEREQUEST.toString() === 'true') {
3768
+ this.serviceRequestValue = 'true';
3769
+ }
3770
+ else {
3771
+ this.serviceRequestValue = 'false';
3772
+ }
3768
3773
  }
3769
3774
  else {
3770
3775
  this.serviceRequestValue = 'false';