diff options
author | Sebastian <sebasjm@gmail.com> | 2022-12-07 18:22:56 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2022-12-07 18:22:56 -0300 |
commit | c2a982e575b532c52514e7343bdd3aaaac655b5f (patch) | |
tree | b4ee8d9ddd717401274c1a6a7c6a5a6e8e9d7559 /packages | |
parent | 46835d5155a561ddf9f3e21bbb81c823c3eab943 (diff) |
missing changes
Diffstat (limited to 'packages')
4 files changed, 4 insertions, 7 deletions
diff --git a/packages/demobank-ui/src/components/FileButton.tsx b/packages/demobank-ui/src/components/FileButton.tsx index 7fad7f03a..61fe0975d 100644 --- a/packages/demobank-ui/src/components/FileButton.tsx +++ b/packages/demobank-ui/src/components/FileButton.tsx @@ -29,7 +29,6 @@ export function FileButton(props: Props): VNode { const f: FileList | null = e.currentTarget.files; if (!f || f.length != 1) return props.onChange(undefined); - console.log(f); if (f[0].size > MAX_IMAGE_UPLOAD_SIZE) { setSizeError(true); return props.onChange(undefined); diff --git a/packages/demobank-ui/src/components/fields/FileInput.tsx b/packages/demobank-ui/src/components/fields/FileInput.tsx index 79cd76f30..8c5269039 100644 --- a/packages/demobank-ui/src/components/fields/FileInput.tsx +++ b/packages/demobank-ui/src/components/fields/FileInput.tsx @@ -72,7 +72,6 @@ export function FileInput(props: FileInputProps): VNode { const f: FileList | null = e.currentTarget.files; if (!f || f.length != 1) return props.onChange(undefined); - console.log(f); if (f[0].size > MAX_IMAGE_UPLOAD_SIZE) { setSizeError(true); return props.onChange(undefined); diff --git a/packages/demobank-ui/src/pages/home/AccountPage.tsx b/packages/demobank-ui/src/pages/home/AccountPage.tsx index ddb1e663b..f2745e45c 100644 --- a/packages/demobank-ui/src/pages/home/AccountPage.tsx +++ b/packages/demobank-ui/src/pages/home/AccountPage.tsx @@ -15,9 +15,8 @@ */ import { Amounts, HttpStatusCode, Logger } from "@gnu-taler/taler-util"; -import { hooks } from "@gnu-taler/web-util/lib/index.browser"; import { ComponentChildren, Fragment, h, VNode } from "preact"; -import { StateUpdater, useEffect } from "preact/hooks"; +import { useEffect } from "preact/hooks"; import useSWR, { SWRConfig, useSWRConfig } from "swr"; import { useBackendContext } from "../../context/backend.js"; import { PageStateType, usePageContext } from "../../context/pageState.js"; @@ -28,8 +27,8 @@ import { getIbanFromPayto, prepareHeaders } from "../../utils.js"; import { BankFrame } from "./BankFrame.js"; import { LoginForm } from "./LoginForm.js"; import { PaymentOptions } from "./PaymentOptions.js"; -import { WithdrawalQRCode } from "./TalerWithdrawalQRCode.js"; import { Transactions } from "./Transactions.js"; +import { WithdrawalQRCode } from "./WithdrawalQRCode.js"; export function AccountPage(): VNode { const backend = useBackendContext(); @@ -118,7 +117,7 @@ function Account({ accountLabel }: { accountLabel: string }): VNode { // } if (typeof error !== "undefined") { - logger.trace("account error", error, endpoint); + logger.error("account error", error, endpoint); /** * FIXME: to minimize the code, try only one invocation * of pageStateSetter, after having decided the error diff --git a/packages/demobank-ui/src/pages/home/RegistrationPage.tsx b/packages/demobank-ui/src/pages/home/RegistrationPage.tsx index 200f63e7c..c91eef7a0 100644 --- a/packages/demobank-ui/src/pages/home/RegistrationPage.tsx +++ b/packages/demobank-ui/src/pages/home/RegistrationPage.tsx @@ -200,7 +200,7 @@ async function registrationCall( headers, }); } catch (error) { - logger.trace( + logger.error( `Could not POST new registration to the bank (${registerEndpoint.href})`, error, ); |