@hmcts/ccpay-web-component 4.0.0-beta538 → 4.0.0-beta539

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.
@@ -1886,7 +1886,9 @@ var ProcessRefundComponent = /** @class */ (function () {
1886
1886
  * @return {?}
1887
1887
  */
1888
1888
  function (data) { return _this.navigationpage = data; }));
1889
- if (this.navigationpage === 'casetransactions') ;
1889
+ if (this.navigationpage === 'casetransactions') {
1890
+ window.location.href = '/refund-list?takePayment=false&refundlist=true';
1891
+ }
1890
1892
  else {
1891
1893
  this.paymentLibComponent.viewName = 'refund-list';
1892
1894
  }
@@ -1898,7 +1900,12 @@ var ProcessRefundComponent = /** @class */ (function () {
1898
1900
  * @return {?}
1899
1901
  */
1900
1902
  function () {
1901
- this.loadRefundListPage();
1903
+ if (this.paymentLibComponent.API_ROOT === 'api/payment-history') {
1904
+ window.location.href = '/refund-list?takePayment=false&refundlist=true';
1905
+ }
1906
+ else {
1907
+ this.loadRefundListPage();
1908
+ }
1902
1909
  };
1903
1910
  // loadCaseTransactionPage() {
1904
1911
  // this.paymentLibComponent.isRefundStatusView = false;