@hmcts/ccpay-web-component 5.0.2-beta32 → 5.0.2-beta33

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.
@@ -8176,12 +8176,13 @@
8176
8176
  }
8177
8177
  if (isFullyRefund) {
8178
8178
  this.totalRefundAmount = this.payment.amount;
8179
- this.fees = ( /** @type {?} */(this.paymentGroup.fees[0]));
8180
8179
  }
8181
- this.fees = this.remissionForm.value.feesList.filter(( /**
8182
- * @param {?} value
8183
- * @return {?}
8184
- */function (value) { return value.selected === true; }));
8180
+ if (!isFullyRefund) {
8181
+ this.fees = this.remissionForm.value.feesList.filter(( /**
8182
+ * @param {?} value
8183
+ * @return {?}
8184
+ */function (value) { return value.selected === true; }));
8185
+ }
8185
8186
  /** @type {?} */
8186
8187
  var requestBody = new PostRefundRetroRemission(this.ccdCaseNumber, this.payment.reference, this.refundReason, this.totalRefundAmount, this.fees, this.contactDetailsObj);
8187
8188
  this.paymentViewService.postRefundsReason(requestBody).subscribe(( /**