@hmcts/ccpay-web-component 5.0.2-beta46 → 5.0.2-beta47

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.
@@ -1782,7 +1782,7 @@ var PaymentViewComponent = /** @class */ (function () {
1782
1782
  function (paymentgrp) {
1783
1783
  if (paymentgrp !== null && paymentgrp !== undefined) {
1784
1784
  if (this.chkIssueRefundBtnEnable(paymentgrp.payments[0])) {
1785
- if (this.checkIsOverPayment(paymentgrp.payments)) {
1785
+ if (paymentgrp.payments[0].over_payment > 0) {
1786
1786
  this.viewCompStatus = 'overpayment';
1787
1787
  }
1788
1788
  else {
@@ -1796,27 +1796,6 @@ var PaymentViewComponent = /** @class */ (function () {
1796
1796
  }
1797
1797
  }
1798
1798
  };
1799
- /**
1800
- * @param {?} payments
1801
- * @return {?}
1802
- */
1803
- PaymentViewComponent.prototype.checkIsOverPayment = /**
1804
- * @param {?} payments
1805
- * @return {?}
1806
- */
1807
- function (payments) {
1808
- var _this = this;
1809
- /** @type {?} */
1810
- var isOverpaymentAvailable = false;
1811
- payments.forEach((/**
1812
- * @param {?} payment
1813
- * @return {?}
1814
- */
1815
- function (payment) {
1816
- isOverpaymentAvailable = payment.reference === _this.payment.reference && payment.over_payment > 0;
1817
- }));
1818
- return isOverpaymentAvailable;
1819
- };
1820
1799
  /**
1821
1800
  * @param {?} feeCode
1822
1801
  * @param {?} remissions