tango-app-ui-ticket-user 3.0.13-dev → 3.0.14-dev

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.
@@ -412,12 +412,15 @@ class InfraticketsComponent {
412
412
  this.toastService.getSuccessToast(res.message);
413
413
  this.userTicketList('open');
414
414
  }
415
+ else if (res && res.code == 201) {
416
+ this.toastService.getErrorToast(res.error);
417
+ }
415
418
  else {
416
419
  this.toastService.getErrorToast("No Ticket Available");
417
420
  }
418
421
  },
419
422
  error: (err) => {
420
- this.toastService.getErrorToast(err.Error);
423
+ this.toastService.getErrorToast(err.error);
421
424
  },
422
425
  complete: () => {
423
426
  },