@miden-npm/angular 2.1.0 → 2.1.1

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.
@@ -2249,7 +2249,7 @@ class PayByCardComponent {
2249
2249
  processedResponse.transactionReference.trim() !== '') {
2250
2250
  this.paymentAuthorized.emit({
2251
2251
  paymentId: processedResponse.transactionReference,
2252
- paymentDate: response.data.updatedAt ?? new Date().toISOString(),
2252
+ paymentDate: response?.data?.updatedAt ?? new Date().toISOString(),
2253
2253
  paymentStatus: 'authorized',
2254
2254
  message: this.message,
2255
2255
  });
@@ -2504,7 +2504,7 @@ class PayByStableCoinComponent {
2504
2504
  this.paymentReferenceStatus = 'pending';
2505
2505
  this.paymentAuthorized.emit({
2506
2506
  paymentId: this.transactionReference,
2507
- paymentDate: response.data.updatedAt,
2507
+ paymentDate: response?.data?.updatedAt ?? new Date().toISOString(),
2508
2508
  paymentStatus: this.paymentReferenceStatus,
2509
2509
  message: this.message,
2510
2510
  });
@@ -2515,7 +2515,7 @@ class PayByStableCoinComponent {
2515
2515
  this.paymentReferenceStatus = 'confirmed';
2516
2516
  this.paymentAuthorized.emit({
2517
2517
  paymentId: this.transactionReference,
2518
- paymentDate: response.data.updatedAt,
2518
+ paymentDate: response?.data?.updatedAt ?? new Date().toISOString(),
2519
2519
  paymentStatus: this.paymentReferenceStatus,
2520
2520
  message: this.message,
2521
2521
  });
@@ -2720,7 +2720,7 @@ class PayByTransferComponent {
2720
2720
  this.paymentReferenceStatus = 'pending';
2721
2721
  this.paymentAuthorized.emit({
2722
2722
  paymentId: this.transactionReference,
2723
- paymentDate: response.data.updatedAt,
2723
+ paymentDate: response?.data?.updatedAt ?? new Date().toISOString(),
2724
2724
  paymentStatus: this.paymentReferenceStatus,
2725
2725
  message: this.message,
2726
2726
  });
@@ -2729,7 +2729,7 @@ class PayByTransferComponent {
2729
2729
  this.paymentReferenceStatus = 'confirmed';
2730
2730
  this.paymentAuthorized.emit({
2731
2731
  paymentId: this.transactionReference,
2732
- paymentDate: response.data.updatedAt,
2732
+ paymentDate: response?.data?.updatedAt ?? new Date().toISOString(),
2733
2733
  paymentStatus: this.paymentReferenceStatus,
2734
2734
  message: this.message,
2735
2735
  });
@@ -2740,7 +2740,7 @@ class PayByTransferComponent {
2740
2740
  response.data?.paymentStatus === 'Payment Received') {
2741
2741
  this.paymentAuthorized.emit({
2742
2742
  paymentId: this.transactionReference,
2743
- paymentDate: response.data.updatedAt,
2743
+ paymentDate: response?.data?.updatedAt ?? new Date().toISOString(),
2744
2744
  paymentStatus: this.paymentReferenceStatus,
2745
2745
  message: this.message,
2746
2746
  });