@hmcts/ccpay-web-component 6.5.24-beta01 → 6.5.24-beta02

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.
@@ -4734,13 +4734,13 @@ class StatusHistoryComponent {
4734
4734
  paymentGroup.payments &&
4735
4735
  paymentGroup.payments.length > 0 ? paymentGroup.payments[0] : null;
4736
4736
  if (firstPayment &&
4737
- (firstPayment.channel === 'telephony' || firstPayment.channel === 'online') &&
4738
- (firstPayment.method === 'card')) {
4739
- this.isDisplayReasons = this.statuses.status_histories.map(statusHistory => statusHistory.status === 'failed' ||
4740
- statusHistory.status === 'declined' ||
4741
- statusHistory.status === 'cancelled' ||
4742
- statusHistory.status === 'timed out' ||
4743
- statusHistory.status === 'error');
4737
+ (firstPayment.channel.toLowerCase() === 'telephony' || firstPayment.channel.toLowerCase() === 'online') &&
4738
+ (firstPayment.method.toLowerCase() === 'card')) {
4739
+ this.isDisplayReasons = this.statuses.status_histories.map(statusHistory => statusHistory.status.toLowerCase() === 'failed' ||
4740
+ statusHistory.status.toLowerCase() === 'declined' ||
4741
+ statusHistory.status.toLowerCase() === 'cancelled' ||
4742
+ statusHistory.status.toLowerCase() === 'timed out' ||
4743
+ statusHistory.status.toLowerCase() === 'error');
4744
4744
  this.isDisplayFailureReasonColumn = this.isDisplayReasons.some(isDisplayReason => isDisplayReason);
4745
4745
  }
4746
4746
  else {