1
0
mirror of https://github.com/trezor/trezor-wallet synced 2024-11-24 09:18:09 +00:00

accountSelection fix

This commit is contained in:
Szymon Lesisz 2018-03-29 11:34:09 +02:00
parent f97655fe68
commit c3c51d2c91

View File

@ -71,7 +71,7 @@ const AccountSelection = (props: any): any => {
// TODO: add only if last one is not empty // TODO: add only if last one is not empty
//if (selectedAccounts.length > 0 && selectedAccounts[selectedAccounts.length - 1]) //if (selectedAccounts.length > 0 && selectedAccounts[selectedAccounts.length - 1])
const lastAccount = deviceAddresses[deviceAddresses.length - 1]; const lastAccount = deviceAddresses[deviceAddresses.length - 1];
if (lastAccount && new BigNumber(lastAccount.balance).greaterThan(0) || lastAccount.nonce > 0) { if (lastAccount && (new BigNumber(lastAccount.balance).greaterThan(0) || lastAccount.nonce > 0)) {
discoveryStatus = ( discoveryStatus = (
<div className="add-address" onClick={ props.addAddress }> <div className="add-address" onClick={ props.addAddress }>
Add address Add address