Skip to content

Commit ce024e2

Browse files
fix: prefer signer-scoped uuid resolution
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
1 parent 39257d4 commit ce024e2

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

src/utils/signRequestUuid.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,16 @@ export function getSigningRouteUuid(
4747
document: DocumentLike | null | undefined,
4848
fallbackUuid: string | null = null,
4949
): string | null {
50+
const signerUuid = getCurrentSignerSignRequestUuid(document, fallbackUuid)
51+
if (isNonEmptyString(signerUuid)) {
52+
return signerUuid
53+
}
54+
5055
if (document?.settings?.isApprover === true && isNonEmptyString(document?.uuid)) {
5156
return document.uuid
5257
}
5358

54-
return getCurrentSignerSignRequestUuid(document, fallbackUuid)
59+
return null
5560
}
5661

5762
export function getValidationRouteUuid(document: DocumentLike | null | undefined): string | number | null {
@@ -64,4 +69,4 @@ export function getValidationRouteUuid(document: DocumentLike | null | undefined
6469
}
6570

6671
return null
67-
}
72+
}

0 commit comments

Comments
 (0)