diff --git a/ui/pages/create-account/connect-hardware/index.js b/ui/pages/create-account/connect-hardware/index.js index b59e97932a1b..0145f767588b 100644 --- a/ui/pages/create-account/connect-hardware/index.js +++ b/ui/pages/create-account/connect-hardware/index.js @@ -86,6 +86,21 @@ class ConnectHardwareForm extends Component { this.checkIfUnlocked(); } + componentWillUnmount() { + this.props.setHardwareWalletDefaultHdPath({ + device: DEVICE_NAMES.TREZOR, + path: `m/44'/60'/0'/0`, + }); + this.props.setHardwareWalletDefaultHdPath({ + device: DEVICE_NAMES.LEDGER, + path: `m/44'/60'/0'/0/0`, + }); + this.props.setHardwareWalletDefaultHdPath({ + device: DEVICE_NAMES.LATTICE, + path: `m/44'/60'/0'/0`, + }); + } + async checkIfUnlocked() { for (const device of [ DEVICE_NAMES.TREZOR,