mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Replace use of .flat with _.flatten, to accomodate chrome < 69 (#13520)
This commit is contained in:
parent
1297761de7
commit
8ad85e6413
@ -1,3 +1,4 @@
|
||||
import { flatten } from 'lodash';
|
||||
import { permissionRpcMethods } from '@metamask/snap-controllers';
|
||||
import { selectHooks } from '@metamask/rpc-methods';
|
||||
import { ethErrors } from 'eth-rpc-errors';
|
||||
@ -15,7 +16,7 @@ const handlerMap = allHandlers.reduce((map, handler) => {
|
||||
|
||||
const expectedHookNames = Array.from(
|
||||
new Set(
|
||||
allHandlers.map(({ hookNames }) => Object.keys(hookNames)).flat(),
|
||||
flatten(allHandlers.map(({ hookNames }) => Object.keys(hookNames))),
|
||||
).values(),
|
||||
);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user