1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00

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.
This commit is contained in:
Mark Stacey 2020-11-05 17:07:19 -03:30 committed by GitHub
parent cfbcc12398
commit 3dbf5dbf65
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 4 deletions

View File

@ -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 <Redirect to={{ pathname: DEFAULT_ROUTE }} />

View File

@ -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,
}
}