Skip to content

Commit 733a00d

Browse files
authored
Merge pull request #497 from BitGo/feature/COIN-52
chore(wrw) : userKey removal from the recovery file generated.
2 parents 411a07c + e2aabbf commit 733a00d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/containers/EvmCrossChainRecoveryWallet/EvmCrossChainRecoveryWallet.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,9 +124,13 @@ async function handleOnSubmit(
124124
throw new Error('No file path selected');
125125
}
126126

127+
// COIN-52 : User key removal from the generated file
128+
const responseObject = typeof recoverData === 'string' ? JSON.parse(recoverData) : recoverData;
129+
delete responseObject.userKey;
130+
127131
await window.commands.writeFile(
128132
showSaveDialogData.filePath,
129-
JSON.stringify(recoverData, null, 2),
133+
JSON.stringify(responseObject, null, 2),
130134
{ encoding: 'utf-8' }
131135
);
132136

0 commit comments

Comments
 (0)