diff --git a/project/ws/app/src/lib/routes/home/routes/approvals/bulk-upload/bulk-upload.component.ts b/project/ws/app/src/lib/routes/home/routes/approvals/bulk-upload/bulk-upload.component.ts index 8b0ab28dc..a6e2412b2 100644 --- a/project/ws/app/src/lib/routes/home/routes/approvals/bulk-upload/bulk-upload.component.ts +++ b/project/ws/app/src/lib/routes/home/routes/approvals/bulk-upload/bulk-upload.component.ts @@ -75,7 +75,8 @@ export class BulkUploadApprovalComponent implements OnInit, AfterViewInit, OnDes .subscribe((res: any) => { this.lastUploadList = res.result.content.sort((a: any, b: any) => new Date(b.datecreatedon).getTime() - new Date(a.datecreatedon).getTime()) - }, (error: HttpErrorResponse) => { + // tslint:disable-next-line + }, (error: HttpErrorResponse) => { if (!error.ok) { this.matSnackBar.open('Unable to get Bulk status list') } @@ -117,7 +118,8 @@ export class BulkUploadApprovalComponent implements OnInit, AfterViewInit, OnDes if (!resendFlag) { this.verifyOTP(contactType) } - }, (error: HttpErrorResponse) => { + // tslint:disable-next-line + }, (error: HttpErrorResponse) => { if (!error.ok) { this.matSnackBar.open(_.get(error, 'error.params.errmsg') || `Unable to send OTP to your ${contactType}, please try again later!`) } @@ -170,7 +172,8 @@ export class BulkUploadApprovalComponent implements OnInit, AfterViewInit, OnDes this.fileName = '' this.fileSelected = '' this.getBulkStatusList() - }, (_err: HttpErrorResponse) => { + // tslint:disable-next-line + }, (_err: HttpErrorResponse) => { if (!_err.ok) { this.matSnackBar.open('Uploading CSV file failed due to some error, please try again later!') } @@ -198,6 +201,11 @@ export class BulkUploadApprovalComponent implements OnInit, AfterViewInit, OnDes if (res) { // console.log('*********************', res) } + // tslint:disable-next-line + }, (error: HttpErrorResponse) => { + if (!error.ok) { + this.matSnackBar.open(error.error.text) + } }) }