taler-typescript-core

Wallet core logic and WebUIs for various components
Log | Files | Refs | Submodules | README | LICENSE

commit beccee009b0a151887daa35b2cac0722f7b4ca8b
parent 834d040e8f46dc2923a36b85762c656814c85ff5
Author: Florian Dold <florian@dold.me>
Date:   Sun, 19 Jul 2026 15:49:19 +0200

fix compilation errors in UI components due to void payto

Diffstat:
Mpackages/libeufin-bank-webui/src/pages/OperationState/views.tsx | 2++
Mpackages/libeufin-bank-webui/src/pages/PaytoWireTransferForm.tsx | 1+
Mpackages/libeufin-bank-webui/src/pages/WithdrawalConfirmationQuestion.tsx | 2++
Mpackages/taler-exchange-aml-webui/src/pages/Search.tsx | 2++
Mpackages/taler-merchant-webui/src/paths/instance/accounts/list/Table.tsx | 3++-
Mpackages/taler-wallet-webextension/src/components/BankDetailsByPaytoType.tsx | 2+-
6 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/packages/libeufin-bank-webui/src/pages/OperationState/views.tsx b/packages/libeufin-bank-webui/src/pages/OperationState/views.tsx @@ -343,6 +343,8 @@ export function NeedConfirmationView({ </Fragment> ); } + case PaytoType.Void: + return <p>void account not suported</p> default: { assertUnreachable(details.account); } diff --git a/packages/libeufin-bank-webui/src/pages/PaytoWireTransferForm.tsx b/packages/libeufin-bank-webui/src/pages/PaytoWireTransferForm.tsx @@ -268,6 +268,7 @@ export function PaytoWireTransferForm({ case PaytoType.Bitcoin: case undefined: case PaytoType.TalerReserve: + case PaytoType.Void: case PaytoType.TalerReserveHttp: { // FIXME: unsupported payto break; diff --git a/packages/libeufin-bank-webui/src/pages/WithdrawalConfirmationQuestion.tsx b/packages/libeufin-bank-webui/src/pages/WithdrawalConfirmationQuestion.tsx @@ -373,6 +373,8 @@ export function WithdrawalConfirmationQuestion({ </Fragment> ); } + case PaytoType.Void: + return <p>void payto is not supported</p>; default: { assertUnreachable(details.account); } diff --git a/packages/taler-exchange-aml-webui/src/pages/Search.tsx b/packages/taler-exchange-aml-webui/src/pages/Search.tsx @@ -628,6 +628,8 @@ function translatePaytoErrorResult( return i18n.str`Ethereum address is missing`; case PaytoType.Cyclos: return i18n.str`Cyclos address is missing`; + case PaytoType.Void: + return i18n.str`Void address is missing`; default: assertUnreachable(tt); } diff --git a/packages/taler-merchant-webui/src/paths/instance/accounts/list/Table.tsx b/packages/taler-merchant-webui/src/paths/instance/accounts/list/Table.tsx @@ -34,9 +34,9 @@ import { import { Fragment, h, VNode } from "preact"; import { StateUpdater, useState } from "preact/hooks"; import { ConfirmModal } from "../../../../components/modal/index.js"; -import { useSessionContext } from "../../../../context/session.js"; import { Tooltip } from "../../../../components/Tooltip.js"; import { useMerchantChallengeHandlerContext } from "../../../../context/challenge.js"; +import { useSessionContext } from "../../../../context/session.js"; const TALER_SCREEN_ID = 35; @@ -189,6 +189,7 @@ function Table({ accounts, onDelete, onSelect }: TableProps): VNode { unknown: [], ethereum: [], cyclos: [], + void: [], }; const accountsByType = accounts.reduce((prev, acc) => { diff --git a/packages/taler-wallet-webextension/src/components/BankDetailsByPaytoType.tsx b/packages/taler-wallet-webextension/src/components/BankDetailsByPaytoType.tsx @@ -563,8 +563,8 @@ export function IBANAccountInfoTable({ ); case PaytoType.Bitcoin: case PaytoType.Ethereum: + case PaytoType.Void: return <Fragment />; - default: assertUnreachable(payto); }