LP#1988321: Fix comparison problems to avoid incorrect error
authorChris Sharp <csharp@georgialibraries.org>
Tue, 17 Jan 2023 16:11:36 +0000 (11:11 -0500)
committerJane Sandberg <js7389@princeton.edu>
Wed, 15 Feb 2023 01:32:04 +0000 (17:32 -0800)
Signed-off-by: Chris Sharp <csharp@georgialibraries.org>
Signed-off-by: Jane Sandberg <js7389@princeton.edu>
Open-ILS/src/eg2/src/app/staff/catalog/record/upload-jacket-image-dialog.component.ts

index 06e47db..ca8f7fd 100644 (file)
@@ -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;
                     }