@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.
@@ -1775,7 +1775,7 @@
1775
1775
  function (paymentgrp) {
1776
1776
  if (paymentgrp !== null && paymentgrp !== undefined) {
1777
1777
  if (this.chkIssueRefundBtnEnable(paymentgrp.payments[0])) {
1778
- if (this.checkIsOverPayment(paymentgrp.payments)) {
1778
+ if (paymentgrp.payments[0].over_payment > 0) {
1779
1779
  this.viewCompStatus = 'overpayment';
1780
1780
  }
1781
1781
  else {
@@ -1789,26 +1789,6 @@
1789
1789
  }
1790
1790
  }
1791
1791
  };
1792
- /**
1793
- * @param {?} payments
1794
- * @return {?}
1795
- */
1796
- PaymentViewComponent.prototype.checkIsOverPayment = /**
1797
- * @param {?} payments
1798
- * @return {?}
1799
- */
1800
- function (payments) {
1801
- var _this = this;
1802
- /** @type {?} */
1803
- var isOverpaymentAvailable = false;
1804
- payments.forEach(( /**
1805
- * @param {?} payment
1806
- * @return {?}
1807
- */function (payment) {
1808
- isOverpaymentAvailable = payment.reference === _this.payment.reference && payment.over_payment > 0;
1809
- }));
1810
- return isOverpaymentAvailable;
1811
- };
1812
1792
  /**
1813
1793
  * @param {?} feeCode
1814
1794
  * @param {?} remissions