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:
parent
cfbcc12398
commit
3dbf5dbf65
@ -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 }} />
|
||||
|
@ -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,
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user