diff options
author | Sebastian <sebasjm@gmail.com> | 2024-06-03 12:42:53 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2024-06-03 12:42:53 -0300 |
commit | 228324bb4411515675930e68eece2045dcafe12a (patch) | |
tree | 7cbd92c31a7721603185d5877040899b96ecef84 /packages/merchant-backoffice-ui/src | |
parent | 43857ec597880cbb4d8c6e477fab192b827b962f (diff) | |
download | wallet-core-228324bb4411515675930e68eece2045dcafe12a.tar.xz |
support noContent
Diffstat (limited to 'packages/merchant-backoffice-ui/src')
-rw-r--r-- | packages/merchant-backoffice-ui/src/paths/instance/accounts/create/index.tsx | 41 |
1 files changed, 1 insertions, 40 deletions
diff --git a/packages/merchant-backoffice-ui/src/paths/instance/accounts/create/index.tsx b/packages/merchant-backoffice-ui/src/paths/instance/accounts/create/index.tsx index fa86271c3..4849d1d6c 100644 --- a/packages/merchant-backoffice-ui/src/paths/instance/accounts/create/index.tsx +++ b/packages/merchant-backoffice-ui/src/paths/instance/accounts/create/index.tsx @@ -73,7 +73,7 @@ export default function CreateValidator({ onConfirm, onBack }: Props): VNode { message: i18n.str`Could not create account`, type: "ERROR", description: i18n.str`The request to check the revenue API failed.`, - details: resp.errorDetail + details: JSON.stringify(resp.errorDetail, undefined, 2), }); return; } @@ -166,51 +166,12 @@ export async function testRevenueAPI( if (config.type === "fail") { return config; - // switch (config.case) { - // case HttpStatusCode.Unauthorized: { - // return { - // type: "fail", - // case: TestRevenueErrorType.UNAUTHORIZED, - // detail: config.detail, - // }; - // } - // case HttpStatusCode.NotFound: { - // return { - // type: "fail", - // case: TestRevenueErrorType.NO_CONFIG, - // detail: config.detail, - // }; - // } - // } } const history = await api.getHistory(auth); if (history.type === "fail") { return history; - // switch (history.case) { - // case HttpStatusCode.BadRequest: { - // return { - // type: "fail", - // case: TestRevenueErrorType.CLIENT_BAD_REQUEST, - // detail: history.detail, - // }; - // } - // case HttpStatusCode.Unauthorized: { - // return { - // type: "fail", - // case: TestRevenueErrorType.UNAUTHORIZED, - // detail: history.detail, - // }; - // } - // case HttpStatusCode.NotFound: { - // return { - // type: "fail", - // case: TestRevenueErrorType.NOT_FOUND, - // detail: history.detail, - // }; - // } - // } } } catch (err) { if (err instanceof TalerError) { |