aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/components/pages
diff options
context:
space:
mode:
authorbrunobar79 <brunobar79@gmail.com>2018-07-10 05:55:37 +0800
committerbrunobar79 <brunobar79@gmail.com>2018-07-10 05:55:37 +0800
commit2de3039b6b21ca05ef185c078b67815448864c72 (patch)
tree6a4c69bfc8d3d0823b717ef67224230cfaac13a0 /ui/app/components/pages
parent7cca7ace2ea4cd4b9d3a242067c9a7c344406aba (diff)
downloadtangerine-wallet-browser-2de3039b6b21ca05ef185c078b67815448864c72.tar
tangerine-wallet-browser-2de3039b6b21ca05ef185c078b67815448864c72.tar.gz
tangerine-wallet-browser-2de3039b6b21ca05ef185c078b67815448864c72.tar.bz2
tangerine-wallet-browser-2de3039b6b21ca05ef185c078b67815448864c72.tar.lz
tangerine-wallet-browser-2de3039b6b21ca05ef185c078b67815448864c72.tar.xz
tangerine-wallet-browser-2de3039b6b21ca05ef185c078b67815448864c72.tar.zst
tangerine-wallet-browser-2de3039b6b21ca05ef185c078b67815448864c72.zip
fix account duplication
Diffstat (limited to 'ui/app/components/pages')
-rw-r--r--ui/app/components/pages/create-account/connect-hardware/index.js6
1 files changed, 0 insertions, 6 deletions
diff --git a/ui/app/components/pages/create-account/connect-hardware/index.js b/ui/app/components/pages/create-account/connect-hardware/index.js
index 1aaa0be64..126102235 100644
--- a/ui/app/components/pages/create-account/connect-hardware/index.js
+++ b/ui/app/components/pages/create-account/connect-hardware/index.js
@@ -37,7 +37,6 @@ class ConnectHardwareForm extends Component {
const { accounts } = this.props
const balanceValue = accounts && accounts[address.toLowerCase()] ? accounts[address.toLowerCase()].balance : ''
const formattedBalance = balanceValue !== null ? formatBalance(balanceValue, 6) : '...'
- console.log('[TREZOR]: got balance', address, accounts, balanceValue, formattedBalance)
return formattedBalance
}
@@ -45,21 +44,17 @@ class ConnectHardwareForm extends Component {
this.props
.connectHardware('trezor', page)
.then(accounts => {
- console.log('[TREZOR]: GOT PAGE!', accounts)
if (accounts.length) {
const newState = {}
// Default to the first account
if (this.state.selectedAccount === null) {
const firstAccount = accounts[0]
newState.selectedAccount = firstAccount.index.toString() === '0' ? firstAccount.index.toString() : null
- console.log('[TREZOR]: just defaulted to account', newState.selectedAccount)
// If the page doesn't contain the selected account, let's deselect it
} else if (!accounts.filter(a => a.index.toString() === this.state.selectedAccount).length) {
newState.selectedAccount = null
- console.log('[TREZOR]: just removed default account', newState.selectedAccount)
}
- console.log('[TREZOR]: mapping balances')
// Map accounts with balances
newState.accounts = accounts.map(account => {
@@ -67,7 +62,6 @@ class ConnectHardwareForm extends Component {
return account
})
- console.log('[TREZOR]: ABOUT TO RENDER ACCOUNTS: ', page, newState.accounts)
this.setState(newState)
}
})