From d75e587533d99b1c48b8e8d38fb56b963089b577 Mon Sep 17 00:00:00 2001 From: Whymarrh Whitby Date: Wed, 29 Jan 2020 16:31:53 -0330 Subject: [PATCH] Replace fast-deep-equal with isEqual from lodash (#7935) --- package.json | 1 - .../permission-page-container.component.js | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index d90cd717a..5db38a20e 100644 --- a/package.json +++ b/package.json @@ -112,7 +112,6 @@ "ethjs-query": "^0.3.4", "extension-port-stream": "^1.0.0", "extensionizer": "^1.0.1", - "fast-deep-equal": "^2.0.1", "fast-json-patch": "^2.0.4", "fuse.js": "^3.2.0", "gaba": "^1.9.3", diff --git a/ui/app/components/app/permission-page-container/permission-page-container.component.js b/ui/app/components/app/permission-page-container/permission-page-container.component.js index 310656d6e..bb5afac9e 100644 --- a/ui/app/components/app/permission-page-container/permission-page-container.component.js +++ b/ui/app/components/app/permission-page-container/permission-page-container.component.js @@ -1,6 +1,6 @@ import PropTypes from 'prop-types' import React, { Component } from 'react' -import deepEqual from 'fast-deep-equal' +import { isEqual } from 'lodash' import { PermissionPageContainerContent } from '.' import { PageContainerFooter } from '../../ui/page-container' @@ -40,7 +40,7 @@ export default class PermissionPageContainer extends Component { componentDidUpdate () { const newMethodNames = this.getRequestedMethodNames(this.props) - if (!deepEqual(Object.keys(this.state.selectedPermissions), newMethodNames)) { + if (!isEqual(Object.keys(this.state.selectedPermissions), newMethodNames)) { // this should be a new request, so just overwrite this.setState({ selectedPermissions: this.getRequestedMethodState(newMethodNames),