commit a4e35b9fab0cdd7f1f6b8a348c24229fb210843c parent f56f5fca858b4d358f173db07fe9b974867fa5ee Author: Florian Dold <dold@taler.net> Date: Wed, 19 Aug 2026 18:39:47 +0200 fix type issues Diffstat:
6 files changed, 13 insertions(+), 8 deletions(-)
diff --git a/packages/taler-merchant-webui/src/components/product/ProductForm.tsx b/packages/taler-merchant-webui/src/components/product/ProductForm.tsx @@ -49,9 +49,8 @@ import { InputSelector } from "../form/InputSelector.js"; const TALER_SCREEN_ID = 23; -type Entity = TalerMerchantApi.ProductPatchDetailRequest & { - product_id: string; -}; +type Entity = TalerMerchantApi.ProductPatchDetailRequest & + TalerMerchantApi.ProductAddDetailRequest; interface Props { onSubscribe: (c?: () => Entity | undefined) => void; diff --git a/packages/taler-merchant-webui/src/paths/instance/kyc/list/index.tsx b/packages/taler-merchant-webui/src/paths/instance/kyc/list/index.tsx @@ -81,9 +81,6 @@ export default function ListKYC(_p: Props): VNode { case HttpStatusCode.NotFound: { return <div />; } - case HttpStatusCode.NoContent: { - return <div>no kyc required</div>; - } case HttpStatusCode.NotModified: { return <div />; } diff --git a/packages/taler-merchant-webui/src/paths/instance/otp_devices/update/index.tsx b/packages/taler-merchant-webui/src/paths/instance/otp_devices/update/index.tsx @@ -84,11 +84,14 @@ export default function UpdateValidator({ id: vid, otp_algorithm: result.body.otp_algorithm, otp_device_description: result.body.device_description, - otp_key: "", otp_ctr: result.body.otp_ctr, }} onBack={onBack} onUpdated={(d) => { + if (d.otp_key === undefined) { + onConfirm(); + return; + } setKeyUpdated({ otp_algorithm: d.otp_algorithm, otp_device_description: d.otp_device_description, diff --git a/packages/taler-merchant-webui/src/paths/instance/password/index.tsx b/packages/taler-merchant-webui/src/paths/instance/password/index.tsx @@ -238,9 +238,12 @@ export function AdminPassword({ ); return undefined; case HttpStatusCode.Unauthorized: + case HttpStatusCode.Forbidden: return i18n.str`Not enough rights to change the password.`; case HttpStatusCode.NotFound: return i18n.str`Account not found.`; + case HttpStatusCode.PayloadTooLarge: + return i18n.str`payload too large`; default: assertUnreachable(fail); } diff --git a/packages/taler-merchant-webui/src/paths/instance/update/Update.stories.tsx b/packages/taler-merchant-webui/src/paths/instance/update/Update.stories.tsx @@ -48,6 +48,7 @@ export const Example = createExample(TestedComponent, { address: {}, use_stefan: true, jurisdiction: {}, + accounts: [], default_pay_delay: { d_us: 1000 * 1000, //one second }, diff --git a/packages/taler-wallet-core/src/exchanges.ts b/packages/taler-wallet-core/src/exchanges.ts @@ -1105,7 +1105,9 @@ async function downloadExchangeKeysInfo( }; } -type TosMetaResult = { type: "not-found" } | { type: "ok"; etag: string }; +type TosMetaResult = + | { type: "not-found" } + | { type: "ok"; etag: string | undefined }; /** * Download metadata about an exchange's terms of service.