From 39a119f0716a48015183f6bc1f54455e55f62171 Mon Sep 17 00:00:00 2001 From: slowbackspace Date: Wed, 16 Jan 2019 15:59:14 +0100 Subject: [PATCH] Revert "fix flow issue" This reverts commit 30cd39b8ce1d86513c13bdc43fc538f673d86b1a. --- .../components/LeftNavigation/components/common.js | 10 +++++----- src/views/Wallet/components/LeftNavigation/index.js | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/views/Wallet/components/LeftNavigation/components/common.js b/src/views/Wallet/components/LeftNavigation/components/common.js index c1ae8dfb..8a6b9c0e 100644 --- a/src/views/Wallet/components/LeftNavigation/components/common.js +++ b/src/views/Wallet/components/LeftNavigation/components/common.js @@ -6,7 +6,7 @@ import * as ModalActions from 'actions/ModalActions'; import { toggleDeviceDropdown } from 'actions/WalletActions'; import type { State } from 'flowtype'; -export type StateProps = {| +export type StateProps = { connect: $ElementType, accounts: $ElementType, router: $ElementType, @@ -16,9 +16,9 @@ export type StateProps = {| wallet: $ElementType, devices: $ElementType, pending: $ElementType, -|} +} -export type DispatchProps = {| +export type DispatchProps = { toggleDeviceDropdown: typeof toggleDeviceDropdown, addAccount: typeof DiscoveryActions.addAccount, acquireDevice: typeof TrezorConnectActions.acquire, @@ -27,6 +27,6 @@ export type DispatchProps = {| gotoDeviceSettings: typeof RouterActions.gotoDeviceSettings, onSelectDevice: typeof RouterActions.selectDevice, gotoExternalWallet: typeof ModalActions.gotoExternalWallet, -|} +} -export type Props = {|...StateProps, ...DispatchProps|}; \ No newline at end of file +export type Props = StateProps & DispatchProps; \ No newline at end of file diff --git a/src/views/Wallet/components/LeftNavigation/index.js b/src/views/Wallet/components/LeftNavigation/index.js index 68860474..05482a29 100644 --- a/src/views/Wallet/components/LeftNavigation/index.js +++ b/src/views/Wallet/components/LeftNavigation/index.js @@ -229,7 +229,7 @@ class LeftNavigation extends React.PureComponent { { - if (selectedDevice && isDeviceReady) { + if (isDeviceReady) { this.props.duplicateDevice(selectedDevice); e.stopPropagation(); }