mirror of
https://github.com/trezor/trezor-wallet
synced 2025-02-03 20:01:22 +00:00
Reset state on mount
This commit is contained in:
parent
cf79638cad
commit
934b1cbe0a
@ -37,6 +37,13 @@ class LeftNavigation extends Component {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
componentDidMount() {
|
||||||
|
this.setState({
|
||||||
|
animationType: null,
|
||||||
|
shouldRenderDeviceSelection: false,
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
componentWillReceiveProps() {
|
componentWillReceiveProps() {
|
||||||
const { deviceDropdownOpened } = this.props;
|
const { deviceDropdownOpened } = this.props;
|
||||||
const { selectedDevice } = this.props.wallet;
|
const { selectedDevice } = this.props.wallet;
|
||||||
|
Loading…
Reference in New Issue
Block a user