mirror of
https://github.com/documenso/documenso.git
synced 2026-07-25 01:15:49 +10: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:
+1
-1
@@ -141,7 +141,7 @@ export const DocumentSigningAuthProvider = ({
|
|||||||
|
|
||||||
if (
|
if (
|
||||||
derivedRecipientActionAuth.includes(DocumentAuth.ACCOUNT) &&
|
derivedRecipientActionAuth.includes(DocumentAuth.ACCOUNT) &&
|
||||||
user?.email == recipient.email
|
user?.email === recipient.email
|
||||||
) {
|
) {
|
||||||
return {
|
return {
|
||||||
type: DocumentAuth.ACCOUNT,
|
type: DocumentAuth.ACCOUNT,
|
||||||
|
|||||||
@@ -518,7 +518,7 @@ const mapLocalRecipientsToRecipients = ({
|
|||||||
}, -1);
|
}, -1);
|
||||||
|
|
||||||
return localRecipients.map((recipient) => {
|
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;
|
let recipientId = recipient.id;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user