1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-24 19:10:22 +01:00
metamask-extension/ui/app/pages/first-time-flow/first-time-flow-switch/first-time-flow-switch.container.js
Mark Stacey ad478f8393
Remove unreachable branches from first time flow switch (#9795)
The conditions `isUnlocked` and `!isUnlocked` did account for all
cases, so any branches after that were unreachable.
2020-11-05 12:41:56 -03:30

15 lines
362 B
JavaScript

import { connect } from 'react-redux'
import FirstTimeFlowSwitch from './first-time-flow-switch.component'
const mapStateToProps = ({ metamask }) => {
const { completedOnboarding, isInitialized, isUnlocked } = metamask
return {
completedOnboarding,
isInitialized,
isUnlocked,
}
}
export default connect(mapStateToProps)(FirstTimeFlowSwitch)