From 9df2547ccf74d7cf5294e16a5f5f7c074dd301b7 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Wed, 26 Apr 2023 10:37:11 -0300 Subject: fix endpoint --- packages/demobank-ui/src/pages/PublicHistoriesPage.tsx | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'packages/demobank-ui/src/pages/PublicHistoriesPage.tsx') diff --git a/packages/demobank-ui/src/pages/PublicHistoriesPage.tsx b/packages/demobank-ui/src/pages/PublicHistoriesPage.tsx index 256653dc5..796935373 100644 --- a/packages/demobank-ui/src/pages/PublicHistoriesPage.tsx +++ b/packages/demobank-ui/src/pages/PublicHistoriesPage.tsx @@ -21,17 +21,16 @@ import { useState } from "preact/hooks"; import { Transactions } from "../components/Transactions/index.js"; import { usePublicAccounts } from "../hooks/access.js"; import { handleNotOkResult } from "./HomePage.js"; +import { Loading } from "../components/Loading.js"; const logger = new Logger("PublicHistoriesPage"); -interface Props { - onLoadNotOk: () => void; -} +interface Props {} /** * Show histories of public accounts. */ -export function PublicHistoriesPage({ onLoadNotOk }: Props): VNode { +export function PublicHistoriesPage({}: Props): VNode { const { i18n } = useTranslationContext(); const result = usePublicAccounts(); @@ -43,7 +42,6 @@ export function PublicHistoriesPage({ onLoadNotOk }: Props): VNode { ); if (!result.ok) { - onLoadNotOk(); return handleNotOkResult(i18n)(result); } @@ -52,8 +50,6 @@ export function PublicHistoriesPage({ onLoadNotOk }: Props): VNode { const txs: Record = {}; const accountsBar = []; - logger.trace(`Public history tab: ${showAccount}`); - // Ask story of all the public accounts. for (const account of data.publicAccounts) { logger.trace("Asking transactions for", account.accountLabel); -- cgit v1.2.3