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 /> <AccountBalance />
</Avatar> </Avatar>
<ListItemText primary="Balance" secondary="List of different token balances" /> <ListItemText primary="Balance" secondary="List of different token balances" />
{ balances.count() > 0 &&
<ListItemIcon> <ListItemIcon>
{open {open
? <IconButton disableRipple><ExpandLess /></IconButton> ? <IconButton disableRipple><ExpandLess /></IconButton>
: <IconButton disableRipple><ExpandMore /></IconButton> : <IconButton disabled={balances.count() === 0} disableRipple><ExpandMore /></IconButton>
} }
</ListItemIcon> </ListItemIcon>
}
</ListItem> </ListItem>
<Collapse in={open} timeout="auto"> <Collapse in={open} timeout="auto">
<List component="div" disablePadding> <List component="div" disablePadding>

View File

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