Skip to content

Commit 50e6f79

Browse files
committed
fix: make the test working again
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
1 parent 671e681 commit 50e6f79

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/services/SigningRequirementValidator.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ interface ValidatorConfig {
3535
errors?: Array<{ code?: number; [key: string]: unknown }>
3636
hasSignatures?: boolean
3737
canCreateSignature?: boolean
38+
signerHasSignRequest?: boolean
3839
[key: string]: unknown
3940
}
4041

@@ -121,6 +122,10 @@ export class SigningRequirementValidator {
121122
return false
122123
}
123124

125+
if (config.signerHasSignRequest) {
126+
return true
127+
}
128+
124129
const visibleElements = this.signStore.document?.visibleElements || []
125130
return visibleElements.some(row => String(row.signRequestId) === String(signRequestId))
126131
}

0 commit comments

Comments
 (0)