Skip to content

Commit d76f1f2

Browse files
committed
fix(validation): rely on nodeType for envelope detection
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
1 parent fe84fea commit d76f1f2

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/views/Validation.vue

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -277,8 +277,7 @@ const signRequestUuidForProgress = computed(() => {
277277
278278
const isAfterSigned = computed(() => history.state?.isAfterSigned ?? shouldFireAsyncConfetti.value ?? false)
279279
280-
const isEnvelope = computed(() => document.value?.nodeType === 'envelope'
281-
|| (Array.isArray(document.value?.files) && document.value.files.length > 0))
280+
const isEnvelope = computed(() => document.value?.nodeType === 'envelope')
282281
const validationComponent = computed(() => (isEnvelope.value ? EnvelopeValidation : FileValidation))
283282
const validationDocument = computed(() => document.value)
284283
const validationEnvelopeDocument = computed<LoadedValidationEnvelopeDocumentState | null>(() => (isLoadedValidationEnvelopeDocument(document.value) ? document.value : null))

0 commit comments

Comments
 (0)