1
0
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:
Vladimir Volek 2018-08-16 21:49:39 +02:00
parent cf79638cad
commit 934b1cbe0a

View File

@ -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;