fix: correct signer deletion (#1596)
This commit is contained in:
@@ -201,10 +201,12 @@ export const AddSignersFormPartial = ({
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
removeSigner(index);
|
const formStateIndex = form.getValues('signers').findIndex((s) => s.formId === signer.formId);
|
||||||
|
if (formStateIndex !== -1) {
|
||||||
const updatedSigners = signers.filter((_, idx) => idx !== index);
|
removeSigner(formStateIndex);
|
||||||
|
const updatedSigners = form.getValues('signers').filter((s) => s.formId !== signer.formId);
|
||||||
form.setValue('signers', normalizeSigningOrders(updatedSigners));
|
form.setValue('signers', normalizeSigningOrders(updatedSigners));
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
const onAddSelfSigner = () => {
|
const onAddSelfSigner = () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user