fix: add comment

This commit is contained in:
RaktimaNXG
2024-04-16 13:09:30 +05:30
parent 11384192ba
commit b6e028a2c0
@@ -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);