Lookup balance from accountId (#632)

This commit is contained in:
Jaco Greeff 2019-01-21 15:49:54 +01:00 committed by GitHub
parent 5a705f3aff
commit fd5797f129
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -130,9 +130,10 @@ class AddressSummary extends React.PureComponent<Props> {
}
protected renderBalance () {
const { balance, t, withBalance = true, value } = this.props;
const { accounts_idAndIndex = [], balance, t, withBalance = true } = this.props;
const [accountId] = accounts_idAndIndex;
if (!withBalance) {
if (!withBalance || !accountId) {
return null;
}
@ -141,7 +142,7 @@ class AddressSummary extends React.PureComponent<Props> {
balance={balance}
className='ui--AddressSummary-balance'
label={t('balance ')}
value={value}
value={accountId}
/>
);
}