We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9a6149f commit 604e267Copy full SHA for 604e267
src/lib/modules/blockchain_process/proxy.js
@@ -21,7 +21,8 @@ const METHODS_TO_MODIFY = {accounts: 'eth_accounts'};
21
const modifyPayload = (toModifyPayloads, body, accounts) => {
22
switch (toModifyPayloads[body.id]) {
23
case METHODS_TO_MODIFY.accounts:
24
- body.result = body.result.concat(accounts);
+ delete toModifyPayloads[body.id];
25
+ body.result = Array.isArray(body.result) && body.result.concat(accounts);
26
break;
27
default:
28
}
0 commit comments