diff --git a/src/vpu-signature-pdf-upload.js b/src/vpu-signature-pdf-upload.js
index f7e238321be35739a1434f523e6563cdf09fe591..24886991a17959845684d6b0e09604f4ac1747f6 100644
--- a/src/vpu-signature-pdf-upload.js
+++ b/src/vpu-signature-pdf-upload.js
@@ -56,8 +56,7 @@ class SignaturePdfUpload extends VPUSignatureLitElement {
             this.errorFiles[Math.floor(Math.random() * 1000000)] = ev.detail;
             // this triggers the correct update() execution
             this.errorFilesCount++;
-        } else if (ev.detail.json !== undefined &&
-            ev.detail.json["@type"] === "http://schema.org/MediaObject" ) {
+        } else if (ev.detail.json["@type"] === "http://schema.org/MediaObject" ) {
             // this doesn't seem to trigger an update() execution
             this.signedFiles.push(ev.detail.json);
             // this triggers the correct update() execution