@hmcts/ccpay-web-component 5.0.1-beta41 → 5.0.1-beta42

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.
@@ -13,7 +13,7 @@ import { MatFormFieldModule } from '@angular/material/form-field';
13
13
  import { MatInputModule } from '@angular/material/input';
14
14
  import { FormBuilder, Validators, FormControl, FormsModule, ReactiveFormsModule } from '@angular/forms';
15
15
  import { __values } from 'tslib';
16
- import { Injectable, Component, Input, Output, EventEmitter, Pipe, ViewChild, ChangeDetectorRef, NgModule, defineInjectable, inject } from '@angular/core';
16
+ import { Injectable, Component, Input, Output, EventEmitter, ViewChild, ChangeDetectorRef, Pipe, NgModule, defineInjectable, inject } from '@angular/core';
17
17
  import { ActivatedRoute, Router } from '@angular/router';
18
18
 
19
19
  /**
@@ -2009,7 +2009,7 @@ var ProcessRefundComponent = /** @class */ (function () {
2009
2009
  * @return {?}
2010
2010
  */
2011
2011
  function () {
2012
- if (!this.paymentLibComponent.TAKEPAYMENT) {
2012
+ if (typeof this.paymentLibComponent.TAKEPAYMENT === 'string' && this.paymentLibComponent.TAKEPAYMENT === 'false') {
2013
2013
  window.location.href = '/refund-list?takePayment=false&refundlist=true';
2014
2014
  }
2015
2015
  else {
@@ -2028,7 +2028,7 @@ var ProcessRefundComponent = /** @class */ (function () {
2028
2028
  * @return {?}
2029
2029
  */
2030
2030
  function () {
2031
- if (!this.paymentLibComponent.TAKEPAYMENT) {
2031
+ if (typeof this.paymentLibComponent.TAKEPAYMENT === 'string' && this.paymentLibComponent.TAKEPAYMENT === 'false') {
2032
2032
  window.location.href = '/refund-list?takePayment=false&refundlist=true';
2033
2033
  }
2034
2034
  else {