diff options
author | Sebastian <sebasjm@gmail.com> | 2024-04-03 09:52:53 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2024-04-03 14:56:29 -0300 |
commit | 56da180423029a1b53d2be343eed4f073e96dc89 (patch) | |
tree | e8fd31dcc4c7bc6866b139de097c8f2c01f93597 /packages/bank-ui/src/pages/PublicHistoriesPage.tsx | |
parent | c53c6b8b3c0a66f3862883ec1314c6d4bf68af32 (diff) | |
download | wallet-core-56da180423029a1b53d2be343eed4f073e96dc89.tar.xz |
wip #8655: updating paginated queries
Diffstat (limited to 'packages/bank-ui/src/pages/PublicHistoriesPage.tsx')
-rw-r--r-- | packages/bank-ui/src/pages/PublicHistoriesPage.tsx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/packages/bank-ui/src/pages/PublicHistoriesPage.tsx b/packages/bank-ui/src/pages/PublicHistoriesPage.tsx index 554da0c3f..1810bd5dd 100644 --- a/packages/bank-ui/src/pages/PublicHistoriesPage.tsx +++ b/packages/bank-ui/src/pages/PublicHistoriesPage.tsx @@ -31,9 +31,9 @@ export function PublicHistoriesPage(): VNode { const result = usePublicAccounts(undefined); const firstAccount = result && - !(result instanceof TalerError) && - result.data.public_accounts.length > 0 - ? result.data.public_accounts[0].username + !(result instanceof TalerError) && + result.body.length > 0 + ? result.body[0].username : undefined; const [showAccount, setShowAccount] = useState(firstAccount); @@ -45,13 +45,13 @@ export function PublicHistoriesPage(): VNode { return <Loading />; } - const { data } = result; + const { body: accountList } = result; const txs: Record<string, h.JSX.Element> = {}; const accountsBar = []; // Ask story of all the public accounts. - for (const account of data.public_accounts) { + for (const account of accountList) { const isSelected = account.username == showAccount; accountsBar.push( <li |