mirror of
https://github.com/documenso/documenso
synced 2026-04-21 13:27:18 +00:00
fix: resolve incorrect recipient comparision check (#2646)
## Description Resolve issues with comparison checks. The `envelope-editor-provider.tsx` should be low impact since it's embed only which will only cause the non relevant attributes (such as sent at) to be incorrectly mapped The `auth-provider.tsx` one should have no impact
This commit is contained in:
parent
e3b7a9e7cb
commit
b13ec8909c
2 changed files with 2 additions and 2 deletions
|
|
@ -141,7 +141,7 @@ export const DocumentSigningAuthProvider = ({
|
|||
|
||||
if (
|
||||
derivedRecipientActionAuth.includes(DocumentAuth.ACCOUNT) &&
|
||||
user?.email == recipient.email
|
||||
user?.email === recipient.email
|
||||
) {
|
||||
return {
|
||||
type: DocumentAuth.ACCOUNT,
|
||||
|
|
|
|||
|
|
@ -518,7 +518,7 @@ const mapLocalRecipientsToRecipients = ({
|
|||
}, -1);
|
||||
|
||||
return localRecipients.map((recipient) => {
|
||||
const foundRecipient = envelope.recipients.find((recipient) => recipient.id === recipient.id);
|
||||
const foundRecipient = envelope.recipients.find((r) => r.id === recipient.id);
|
||||
|
||||
let recipientId = recipient.id;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue