diff options
Diffstat (limited to 'packages/merchant-backoffice-ui/src/paths/instance/accounts/update')
-rw-r--r-- | packages/merchant-backoffice-ui/src/paths/instance/accounts/update/UpdatePage.tsx | 1 | ||||
-rw-r--r-- | packages/merchant-backoffice-ui/src/paths/instance/accounts/update/index.tsx | 10 |
2 files changed, 2 insertions, 9 deletions
diff --git a/packages/merchant-backoffice-ui/src/paths/instance/accounts/update/UpdatePage.tsx b/packages/merchant-backoffice-ui/src/paths/instance/accounts/update/UpdatePage.tsx index c4ba1f0f2..00833071b 100644 --- a/packages/merchant-backoffice-ui/src/paths/instance/accounts/update/UpdatePage.tsx +++ b/packages/merchant-backoffice-ui/src/paths/instance/accounts/update/UpdatePage.tsx @@ -32,6 +32,7 @@ import { Input } from "../../../../components/form/Input.js"; import { InputPaytoForm } from "../../../../components/form/InputPaytoForm.js"; import { InputSelector } from "../../../../components/form/InputSelector.js"; import { undefinedIfEmpty } from "../../../../utils/table.js"; +import { WithId } from "../../../../declaration.js"; type Entity = TalerMerchantApi.BankAccountEntry & WithId; 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 index 9116aaa62..1ada0c8d7 100644 --- a/packages/merchant-backoffice-ui/src/paths/instance/accounts/update/index.tsx +++ b/packages/merchant-backoffice-ui/src/paths/instance/accounts/update/index.tsx @@ -35,6 +35,7 @@ import { LoginPage } from "../../../login/index.js"; import { NotFoundPageOrAdminCreate } from "../../../notfound/index.js"; import { TestRevenueErrorType, testRevenueAPI } from "../create/index.js"; import { UpdatePage } from "./UpdatePage.js"; +import { WithId } from "../../../../declaration.js"; export type Entity = TalerMerchantApi.AccountPatchDetails & WithId; @@ -88,7 +89,6 @@ export default function UpdateValidator({ const resp = await testRevenueAPI( revenueAPI, request.credit_facade_credentials, - result.body.payto_uri, ); if (resp instanceof TalerError) { setNotif({ @@ -127,14 +127,6 @@ 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); } |