Skip to content

🔥 The free & Open Source DocuSign alternative

fix: add comment

RaktimaNXGb6e028a2c005
diff --git a/apps/OpenSign/src/components/shared/fields/SelectSigners.js b/apps/OpenSign/src/components/shared/fields/SelectSigners.js
index 24c24ec85..f6ec88c82 100644
--- a/apps/OpenSign/src/components/shared/fields/SelectSigners.js
+++ b/apps/OpenSign/src/components/shared/fields/SelectSigners.js
@@ -53,6 +53,8 @@ const SelectSigners = (props) => {
const contactRes = await contactbook.find();
if (contactRes) {
const res = JSON.parse(JSON.stringify(contactRes));
+ //compareArrays is a function where compare between two array (total signersList and dcument signers list)
+ //and filter signers from total signer's list which already present in document's signers list
const compareArrays = (res, signerObj) => {
return res.filter(
(item1) =>
@@ -60,6 +62,7 @@ const SelectSigners = (props) => {
);
};
+ //get update signer's List if signersdata is present
const updateSignersList =
props?.signersData && compareArrays(res, props?.signersData);