LP1988321 cover image uploader fix user/gcollum/lp1988321-cover-image-ui-fix-signoff
authorJason Etheridge <jason@EquinoxOLI.org>
Wed, 31 Aug 2022 15:30:54 +0000 (11:30 -0400)
committerGarry Collum <gcollum@gmail.com>
Wed, 31 Aug 2022 18:01:39 +0000 (18:01 +0000)
loosens the test that determines whether an image upload was successful or not

Signed-off-by: Jason Etheridge <jason@EquinoxOLI.org>
Signed-off-by: Garry Collum <gcollum@gmail.com>
Open-ILS/src/eg2/src/app/staff/catalog/record/upload-jacket-image-dialog.component.ts

index 06e47db..d4a5e3c 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 != '1') {
                         this.uploading = false;
                         this.errorUploading = true;
                     }