From 3dbf5dbf651a0c86c30a0d5cea290ef21ea7ac54 Mon Sep 17 00:00:00 2001 From: Mark Stacey Date: Thu, 5 Nov 2020 17:07:19 -0330 Subject: [PATCH] Fix lint error (#9806) A lint error was accidentally introduced recently when two PRs changed the same area of code (#9793 and #9795). They didn't conflict, and the lint passed for both, but when combined they left an unused variable. --- .../first-time-flow-switch/first-time-flow-switch.component.js | 3 +-- .../first-time-flow-switch/first-time-flow-switch.container.js | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/ui/app/pages/first-time-flow/first-time-flow-switch/first-time-flow-switch.component.js b/ui/app/pages/first-time-flow/first-time-flow-switch/first-time-flow-switch.component.js index 278137084..45c7d311d 100644 --- a/ui/app/pages/first-time-flow/first-time-flow-switch/first-time-flow-switch.component.js +++ b/ui/app/pages/first-time-flow/first-time-flow-switch/first-time-flow-switch.component.js @@ -11,11 +11,10 @@ export default class FirstTimeFlowSwitch extends PureComponent { static propTypes = { completedOnboarding: PropTypes.bool, isInitialized: PropTypes.bool, - isUnlocked: PropTypes.bool, } render() { - const { completedOnboarding, isInitialized, isUnlocked } = this.props + const { completedOnboarding, isInitialized } = this.props if (completedOnboarding) { return diff --git a/ui/app/pages/first-time-flow/first-time-flow-switch/first-time-flow-switch.container.js b/ui/app/pages/first-time-flow/first-time-flow-switch/first-time-flow-switch.container.js index 1b35418b5..2f1293b31 100644 --- a/ui/app/pages/first-time-flow/first-time-flow-switch/first-time-flow-switch.container.js +++ b/ui/app/pages/first-time-flow/first-time-flow-switch/first-time-flow-switch.container.js @@ -2,12 +2,11 @@ import { connect } from 'react-redux' import FirstTimeFlowSwitch from './first-time-flow-switch.component' const mapStateToProps = ({ metamask }) => { - const { completedOnboarding, isInitialized, isUnlocked } = metamask + const { completedOnboarding, isInitialized } = metamask return { completedOnboarding, isInitialized, - isUnlocked, } }