Skip to content
Snippets Groups Projects
Commit 0396d702 authored by Sasha Ilieva's avatar Sasha Ilieva
Browse files

Debug

parent 4e43df0f
No related branches found
No related tags found
1 merge request!88908 account recovery ability to add contacts to trusted contacts list for account recovery
......@@ -984,11 +984,13 @@ const connection = Penpal.connectToParent({
const responseData = response.data;
const trusteesDevices = Object.values(responseData);
console.log({ trusteesDevices });
/** Check if there are new trustees without added secret part */
const hasNewTrustees = trusteesDevices.some(
device => device.hasShamir === "0"
);
const hasNewTrustees = trusteesDevices.some(device => {
console.log({ device });
return device.hasShamir === "0";
});
console.log({ hasNewTrustees });
if (!hasNewTrustees) {
return response;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment