Skip to content

Commit

Permalink
chore(wrw) : userKey removal from the recovery file generated.
Browse files Browse the repository at this point in the history
  • Loading branch information
nrjsuthar committed Sep 5, 2024
1 parent 18a0fac commit e2aabbf
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,13 @@ async function handleOnSubmit(
throw new Error('No file path selected');
}

// COIN-52 : User key removal from the generated file
const responseObject = typeof recoverData === 'string' ? JSON.parse(recoverData) : recoverData;
delete responseObject.userKey;

await window.commands.writeFile(
showSaveDialogData.filePath,
JSON.stringify(recoverData, null, 2),
JSON.stringify(responseObject, null, 2),
{ encoding: 'utf-8' }
);

Expand Down

0 comments on commit e2aabbf

Please sign in to comment.