From fd5797f12949a7e71887b78014ec434b19392ea4 Mon Sep 17 00:00:00 2001 From: Jaco Greeff Date: Mon, 21 Jan 2019 15:49:54 +0100 Subject: [PATCH] Lookup balance from accountId (#632) --- packages/ui-app/src/AddressSummary.tsx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/packages/ui-app/src/AddressSummary.tsx b/packages/ui-app/src/AddressSummary.tsx index 2de5f65450..cfde5ae66a 100644 --- a/packages/ui-app/src/AddressSummary.tsx +++ b/packages/ui-app/src/AddressSummary.tsx @@ -130,9 +130,10 @@ class AddressSummary extends React.PureComponent { } 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 { balance={balance} className='ui--AddressSummary-balance' label={t('balance ')} - value={value} + value={accountId} /> ); }