1
0
mirror of https://github.com/trezor/trezor-wallet synced 2025-01-11 08:31:00 +00:00

Forget correct device

This commit is contained in:
Vasek Mlejnsky 2018-09-25 14:41:34 +02:00
parent 83e14f423e
commit 09e0e816d4

View File

@ -98,7 +98,7 @@ class DeviceMenu extends Component<Props> {
}
render() {
const { devices, onSelectDevice } = this.props;
const { devices, onSelectDevice, forgetDevice } = this.props;
const { transport } = this.props.connect;
const { selectedDevice } = this.props.wallet;
@ -110,7 +110,7 @@ class DeviceMenu extends Component<Props> {
devices={devices}
selectedDevice={selectedDevice}
onSelectDevice={onSelectDevice}
forgetDevice={() => this.props.forgetDevice(selectedDevice)}
forgetDevice={forgetDevice}
/>
<ButtonWrapper>
{isWebUSB(transport) && (