taler-typescript-core

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

commit 8e18da78b3dd7f762679fc832db18713b78423b1
parent aac3878f5915d4742d253ad13b076a20f011e403
Author: Sebastian <sebasjm@gmail.com>
Date:   Mon,  3 Jun 2024 13:29:39 -0300

fix broken build

Diffstat:
Mpackages/merchant-backoffice-ui/src/paths/instance/accounts/update/index.tsx | 11++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/packages/merchant-backoffice-ui/src/paths/instance/accounts/update/index.tsx b/packages/merchant-backoffice-ui/src/paths/instance/accounts/update/index.tsx @@ -33,7 +33,7 @@ import { useBankAccountDetails } from "../../../../hooks/bank.js"; import { Notification } from "../../../../utils/types.js"; import { LoginPage } from "../../../login/index.js"; import { NotFoundPageOrAdminCreate } from "../../../notfound/index.js"; -import { testRevenueAPI } from "../create/index.js"; +import { TestRevenueErrorType, testRevenueAPI } from "../create/index.js"; import { UpdatePage } from "./UpdatePage.js"; export type Entity = TalerMerchantApi.AccountPatchDetails & WithId; @@ -88,6 +88,7 @@ export default function UpdateValidator({ const resp = await testRevenueAPI( revenueAPI, request.credit_facade_credentials, + result.body.payto_uri, ); if (resp instanceof TalerError) { setNotif({ @@ -126,6 +127,14 @@ export default function UpdateValidator({ }); return; } + case TestRevenueErrorType.ANOTHER_ACCOUNT: { + setNotif({ + message: i18n.str`Could not add bank account`, + type: "ERROR", + description: i18n.str`The account info URL returned information from an account which is not the same in the account form: ${resp.detail.hint}`, + }); + return; + } default: { assertUnreachable(resp); }