Browse Source

fix scan accounts

master
Gaëtan Renaudeau 7 years ago
parent
commit
97eb62dc7b
  1. 4
      src/components/modals/AddAccounts/steps/03-step-import.js

4
src/components/modals/AddAccounts/steps/03-step-import.js

@ -17,7 +17,7 @@ import type { StepProps } from '../index'
class StepImport extends PureComponent<StepProps> {
componentDidMount() {
this.startScanAccountsDevice()
this.props.setState({ scanStatus: 'scanning' })
}
componentDidUpdate(prevProps: StepProps) {
@ -72,8 +72,6 @@ class StepImport extends PureComponent<StepProps> {
// TODO: use the real device
const devicePath = currentDevice.path
setState({ scanStatus: 'scanning' })
this.scanSubscription = bridge.scanAccountsOnDevice(currency, devicePath, {
next: account => {
const { scannedAccounts, checkedAccountsIds, existingAccounts } = this.props

Loading…
Cancel
Save