@hmcts/ccpay-web-component 5.0.7-beta51 → 5.0.7-beta52

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.
@@ -10616,9 +10616,11 @@ var RefundStatusComponent = /** @class */ (function () {
10616
10616
  */
10617
10617
  function (refundListReason) {
10618
10618
  if (this.paymentLibComponent.isFromRefundStatusPage && !this.paymentLibComponent.iscancelClicked) {
10619
- this.refundlist.reason = refundListReason.reason;
10620
- this.refundlist.code = refundListReason.code;
10621
- this.refundCode = refundListReason.code;
10619
+ if (refundListReason.reason != undefined && refundListReason.reason != null && refundListReason.reason != this.refundlist.reason) {
10620
+ this.refundlist.reason = refundListReason.reason;
10621
+ this.refundlist.code = refundListReason.code;
10622
+ this.refundCode = refundListReason.code;
10623
+ }
10622
10624
  }
10623
10625
  else {
10624
10626
  this.isRefundBtnDisabled = true;