mirror of
https://github.com/trezor/trezor-wallet
synced 2025-02-03 11:51:32 +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() {
|
||||
const { deviceDropdownOpened } = this.props;
|
||||
const { selectedDevice } = this.props.wallet;
|
||||
|
Loading…
Reference in New Issue
Block a user