From 09e0e816d44ec31055f746b55578f251a89744ef Mon Sep 17 00:00:00 2001 From: Vasek Mlejnsky Date: Tue, 25 Sep 2018 14:41:34 +0200 Subject: [PATCH] Forget correct device --- .../components/LeftNavigation/components/DeviceMenu/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/views/Wallet/components/LeftNavigation/components/DeviceMenu/index.js b/src/views/Wallet/components/LeftNavigation/components/DeviceMenu/index.js index 3be0d059..dc34884e 100644 --- a/src/views/Wallet/components/LeftNavigation/components/DeviceMenu/index.js +++ b/src/views/Wallet/components/LeftNavigation/components/DeviceMenu/index.js @@ -98,7 +98,7 @@ class DeviceMenu extends Component { } 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 { devices={devices} selectedDevice={selectedDevice} onSelectDevice={onSelectDevice} - forgetDevice={() => this.props.forgetDevice(selectedDevice)} + forgetDevice={forgetDevice} /> {isWebUSB(transport) && (