From: Chris Sharp Date: Tue, 17 Jan 2023 16:11:36 +0000 (-0500) Subject: LP#1988321: Fix comparison problems to avoid incorrect error X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=f793685ffc019b48aa1930d0f73d69dad165d1d8;p=evergreen%2Fpines.git LP#1988321: Fix comparison problems to avoid incorrect error Signed-off-by: Chris Sharp Signed-off-by: Jane Sandberg --- diff --git a/Open-ILS/src/eg2/src/app/staff/catalog/record/upload-jacket-image-dialog.component.ts b/Open-ILS/src/eg2/src/app/staff/catalog/record/upload-jacket-image-dialog.component.ts index 06e47db737..ca8f7fd8fd 100644 --- a/Open-ILS/src/eg2/src/app/staff/catalog/record/upload-jacket-image-dialog.component.ts +++ b/Open-ILS/src/eg2/src/app/staff/catalog/record/upload-jacket-image-dialog.component.ts @@ -98,7 +98,7 @@ export class UploadJacketImageDialogComponent extends DialogComponent implements console.debug('Jacket upload: ' , x); if (x instanceof HttpResponse) { console.debug('yay', x.body); - if (x.body !== '1') { + if (x.body.toString() !== '1') { this.uploading = false; this.errorUploading = true; }