From f793685ffc019b48aa1930d0f73d69dad165d1d8 Mon Sep 17 00:00:00 2001 From: Chris Sharp Date: Tue, 17 Jan 2023 11:11:36 -0500 Subject: [PATCH] LP#1988321: Fix comparison problems to avoid incorrect error Signed-off-by: Chris Sharp Signed-off-by: Jane Sandberg --- .../app/staff/catalog/record/upload-jacket-image-dialog.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.11.0