@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.
@@ -7268,13 +7268,14 @@ class AddRemissionComponent {
7268
7268
  }
7269
7269
  if (isFullyRefund) {
7270
7270
  this.totalRefundAmount = this.payment.amount;
7271
- this.fees = (/** @type {?} */ (this.paymentGroup.fees[0]));
7272
7271
  }
7273
- this.fees = this.remissionForm.value.feesList.filter((/**
7274
- * @param {?} value
7275
- * @return {?}
7276
- */
7277
- value => value.selected === true));
7272
+ if (!isFullyRefund) {
7273
+ this.fees = this.remissionForm.value.feesList.filter((/**
7274
+ * @param {?} value
7275
+ * @return {?}
7276
+ */
7277
+ value => value.selected === true));
7278
+ }
7278
7279
  /** @type {?} */
7279
7280
  const requestBody = new PostRefundRetroRemission(this.ccdCaseNumber, this.payment.reference, this.refundReason, this.totalRefundAmount, this.fees, this.contactDetailsObj);
7280
7281
  this.paymentViewService.postRefundsReason(requestBody).subscribe((/**