@hmcts/ccpay-web-component 5.0.7-beta16 → 5.0.7-beta17

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.
@@ -8250,6 +8250,21 @@
8250
8250
  if (res['data'][i]["representment_status"] !== undefined) {
8251
8251
  res['data'][i]['representment_status'] = res['data'][i]["representment_status"].toLowerCase() === 'yes' ? 'Success' : 'Failure';
8252
8252
  }
8253
+ if (res['data'][i]['representment_status'] === undefined) {
8254
+ res['data'][i]['representment_status'] = 'No representment received';
8255
+ }
8256
+ if (res['data'][i]['representment_date'] === undefined) {
8257
+ res['data'][i]['representment_date'] = 'N/A';
8258
+ }
8259
+ if (res['data'][i]['refund_reference'] === undefined) {
8260
+ res['data'][i]['refund_reference'] = 'No refund available';
8261
+ }
8262
+ if (res['data'][i]['refund_amount'] === undefined) {
8263
+ res['data'][i]['refund_amount'] = 'N/A';
8264
+ }
8265
+ if (res['data'][i]['refund_date'] === undefined) {
8266
+ res['data'][i]['refund_date'] = 'N/A';
8267
+ }
8253
8268
  }
8254
8269
  }
8255
8270
  _this.isDownLoadButtondisabled = false;