accountSelection fix

pull/2/merge
Szymon Lesisz 6 years ago
parent f97655fe68
commit c3c51d2c91

@ -71,7 +71,7 @@ const AccountSelection = (props: any): any => {
// TODO: add only if last one is not empty
//if (selectedAccounts.length > 0 && selectedAccounts[selectedAccounts.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 = (
<div className="add-address" onClick={ props.addAddress }>
Add address

Loading…
Cancel
Save