diff options
author | Sebastian <sebasjm@gmail.com> | 2023-12-06 14:05:37 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2023-12-06 14:10:10 -0300 |
commit | 35ee1ddd797be94557ab23f500c69fabee468387 (patch) | |
tree | e618fab464884275b484c599fc81ae9391002572 /packages/demobank-ui/src/pages/PublicHistoriesPage.tsx | |
parent | 71acfc274c9cfef70d9c2ed542958434ac94b137 (diff) | |
download | wallet-core-35ee1ddd797be94557ab23f500c69fabee468387.tar.xz |
account form
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 ( |