Skip to content

Commit 37c355e

Browse files
committed
frontend/account-summary: fix regression during address scanning
Recent commit d8c6ba0 refactored the account summary section to group accounts by keystore. The commit also introduced a small regression, hiding the account rendering until the balance of each account is ready, while the previous behavior was to show the accounts displaying the scanned addresses. This fixes the regression.
1 parent 0b7edac commit 37c355e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

frontends/web/src/routes/account/summary/accountssummary.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,15 +189,15 @@ export function AccountsSummary({
189189
<AddBuyReceiveOnEmptyBalances accounts={accounts} balances={balances} />
190190
) : undefined
191191
} />
192-
{accountsByKeystore && balancePerCoin &&
192+
{accountsByKeystore &&
193193
(accountsByKeystore.map(({ keystore, accounts }) =>
194194
<SummaryBalance
195195
keystoreDisambiguatorName={isAmbiguiousName(keystore.name, accountsByKeystore) ? keystore.rootFingerprint : undefined}
196196
connected={keystore.connected}
197197
keystoreName={keystore.name}
198198
key={keystore.rootFingerprint}
199199
accounts={accounts}
200-
totalBalancePerCoin={balancePerCoin[keystore.rootFingerprint]}
200+
totalBalancePerCoin={ balancePerCoin ? balancePerCoin[keystore.rootFingerprint] : undefined}
201201
totalBalance={ accountsTotalBalance ? accountsTotalBalance[keystore.rootFingerprint] : undefined}
202202
balances={balances}
203203
/>

0 commit comments

Comments
 (0)