diff options
Diffstat (limited to 'packages/demobank-ui/src/pages/PublicHistoriesPage.tsx')
-rw-r--r-- | packages/demobank-ui/src/pages/PublicHistoriesPage.tsx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/packages/demobank-ui/src/pages/PublicHistoriesPage.tsx b/packages/demobank-ui/src/pages/PublicHistoriesPage.tsx index eb6f6fd27..08503fb9b 100644 --- a/packages/demobank-ui/src/pages/PublicHistoriesPage.tsx +++ b/packages/demobank-ui/src/pages/PublicHistoriesPage.tsx @@ -35,7 +35,7 @@ export function PublicHistoriesPage({ }: Props): VNode { //TODO: implemented filter by account name const result = usePublicAccounts(undefined); const firstAccount = result && !(result instanceof TalerError) && result.data.public_accounts.length > 0 - ? result.data.public_accounts[0].account_name + ? result.data.public_accounts[0].username : undefined; const [showAccount, setShowAccount] = useState(firstAccount); @@ -54,8 +54,8 @@ export function PublicHistoriesPage({ }: Props): VNode { // Ask story of all the public accounts. for (const account of data.public_accounts) { - logger.trace("Asking transactions for", account.account_name); - const isSelected = account.account_name == showAccount; + logger.trace("Asking transactions for", account.username); + const isSelected = account.username == showAccount; accountsBar.push( <li class={ @@ -67,13 +67,13 @@ export function PublicHistoriesPage({ }: Props): VNode { <a href="#" class="pure-menu-link" - onClick={() => setShowAccount(account.account_name)} + onClick={() => setShowAccount(account.username)} > - {account.account_name} + {account.username} </a> </li>, ); - txs[account.account_name] = <Transactions account={account.account_name} />; + txs[account.username] = <Transactions account={account.username} />; } return ( |