Skip to content

Commit

Permalink
Fix lint error (#9806)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Gudahtt authored Nov 5, 2020
1 parent cfbcc12 commit 3dbf5db
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 }} />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}
}

Expand Down

0 comments on commit 3dbf5db

Please sign in to comment.