mirror of
https://github.com/documenso/documenso.git
synced 2025-11-19 11:12:06 +10:00
chore: review
This commit is contained in:
@ -130,8 +130,10 @@ export async function loader({ params, request }: Route.LoaderArgs) {
|
||||
const { documentMeta } = document;
|
||||
|
||||
if (isRecipientExpired(recipient)) {
|
||||
await expireRecipient({ recipientId: recipient.id });
|
||||
throw redirect(`/sign/${token}/expired`);
|
||||
const expiredRecipient = await expireRecipient({ recipientId: recipient.id });
|
||||
if (expiredRecipient) {
|
||||
throw redirect(`/sign/${token}/expired`);
|
||||
}
|
||||
}
|
||||
|
||||
if (recipient.signingStatus === SigningStatus.REJECTED) {
|
||||
|
||||
Reference in New Issue
Block a user