mirror of
https://github.com/trezor/trezor-wallet
synced 2024-12-26 00:48:35 +00:00
changed variable name
This commit is contained in:
parent
d88f5b7b98
commit
d2f63becfa
@ -44,6 +44,7 @@ class LeftNavigation extends Component {
|
|||||||
componentWillReceiveProps() {
|
componentWillReceiveProps() {
|
||||||
const { selectedDevice } = this.props.wallet;
|
const { selectedDevice } = this.props.wallet;
|
||||||
const hasFeatures = selectedDevice && selectedDevice.features;
|
const hasFeatures = selectedDevice && selectedDevice.features;
|
||||||
|
const deviceReady = hasFeatures && !selectedDevice.features.bootloader_mode && selectedDevice.features.initialized;
|
||||||
|
|
||||||
if (this.props.deviceDropdownOpened) {
|
if (this.props.deviceDropdownOpened) {
|
||||||
this.setState({ shouldRenderDeviceSelection: true });
|
this.setState({ shouldRenderDeviceSelection: true });
|
||||||
@ -52,7 +53,7 @@ class LeftNavigation extends Component {
|
|||||||
shouldRenderDeviceSelection: false,
|
shouldRenderDeviceSelection: false,
|
||||||
animationType: 'slide-left',
|
animationType: 'slide-left',
|
||||||
});
|
});
|
||||||
} else if (selectedDevice && hasFeatures && !selectedDevice.features.bootloader_mode && selectedDevice.features.initialized) {
|
} else if (deviceReady) {
|
||||||
this.setState({
|
this.setState({
|
||||||
shouldRenderDeviceSelection: false,
|
shouldRenderDeviceSelection: false,
|
||||||
animationType: 'slide-right',
|
animationType: 'slide-right',
|
||||||
|
Loading…
Reference in New Issue
Block a user