diff options
Diffstat (limited to 'packages/merchant-backoffice-ui/src/paths/instance/accounts/create')
-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) { |