WA-232 Disable expand balance if no balances loaded

This commit is contained in:
apanizo 2018-07-05 15:54:55 +02:00
parent a64a6a0768
commit 4a4701c444
2 changed files with 7 additions and 9 deletions

View File

@ -41,14 +41,12 @@ const BalanceComponent = openHoc(({
<AccountBalance />
</Avatar>
<ListItemText primary="Balance" secondary="List of different token balances" />
{ balances.count() > 0 &&
<ListItemIcon>
{open
? <IconButton disableRipple><ExpandLess /></IconButton>
: <IconButton disableRipple><ExpandMore /></IconButton>
}
</ListItemIcon>
}
<ListItemIcon>
{open
? <IconButton disableRipple><ExpandLess /></IconButton>
: <IconButton disabled={balances.count() === 0} disableRipple><ExpandMore /></IconButton>
}
</ListItemIcon>
</ListItem>
<Collapse in={open} timeout="auto">
<List component="div" disablePadding>

View File

@ -27,7 +27,7 @@ export const printOutApprove = async (
console.log(`EO transaction executed ${await gnosisSafe.isExecuted(transactionHash)}`)
}
const MAX_TIMES_EXECUTED = 20
const MAX_TIMES_EXECUTED = 35
const INTERVAL = 500
type FinsihedTx = {
finishedTransaction: boolean,