@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.
@@ -2021,7 +2021,7 @@
2021
2021
  * @return {?}
2022
2022
  */
2023
2023
  function () {
2024
- if (!this.paymentLibComponent.TAKEPAYMENT) {
2024
+ if (typeof this.paymentLibComponent.TAKEPAYMENT === 'string' && this.paymentLibComponent.TAKEPAYMENT === 'false') {
2025
2025
  window.location.href = '/refund-list?takePayment=false&refundlist=true';
2026
2026
  }
2027
2027
  else {
@@ -2040,7 +2040,7 @@
2040
2040
  * @return {?}
2041
2041
  */
2042
2042
  function () {
2043
- if (!this.paymentLibComponent.TAKEPAYMENT) {
2043
+ if (typeof this.paymentLibComponent.TAKEPAYMENT === 'string' && this.paymentLibComponent.TAKEPAYMENT === 'false') {
2044
2044
  window.location.href = '/refund-list?takePayment=false&refundlist=true';
2045
2045
  }
2046
2046
  else {