diff options
author | Sebastian <sebasjm@gmail.com> | 2024-02-21 16:06:26 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2024-02-21 16:06:26 -0300 |
commit | f5b14b774e3c7f4e240082fac00b1be0a622b096 (patch) | |
tree | deeca348fbf3a134fb7690f5cbe46045960849b1 /packages/merchant-backoffice-ui | |
parent | 27a1d3216f8562bedddb999c0d35b074f751d49b (diff) |
fix #8473
Diffstat (limited to 'packages/merchant-backoffice-ui')
3 files changed, 4 insertions, 3 deletions
diff --git a/packages/merchant-backoffice-ui/src/AdminRoutes.tsx b/packages/merchant-backoffice-ui/src/AdminRoutes.tsx index 91dec09b0..70b28a838 100644 --- a/packages/merchant-backoffice-ui/src/AdminRoutes.tsx +++ b/packages/merchant-backoffice-ui/src/AdminRoutes.tsx @@ -17,6 +17,7 @@ import { h, VNode } from "preact"; import { Router, route, Route } from "preact-router"; import InstanceCreatePage from "./paths/admin/create/index.js"; import InstanceListPage from "./paths/admin/list/index.js"; +import { InstancePaths } from "./InstanceRoutes.js"; export enum AdminPaths { list_instances = "/instances", @@ -42,7 +43,7 @@ export function AdminRoutes(): VNode { component={InstanceCreatePage} onBack={() => route(AdminPaths.list_instances)} onConfirm={() => { - // route(AdminPaths.list_instances); + route(InstancePaths.bank_list); }} // onError={(error: any) => { diff --git a/packages/merchant-backoffice-ui/src/InstanceRoutes.tsx b/packages/merchant-backoffice-ui/src/InstanceRoutes.tsx index 1f3a2b1f8..8eb0cd717 100644 --- a/packages/merchant-backoffice-ui/src/InstanceRoutes.tsx +++ b/packages/merchant-backoffice-ui/src/InstanceRoutes.tsx @@ -231,7 +231,7 @@ export function InstanceRoutes({ <InstanceCreatePage forceId="default" onConfirm={() => { - route(InstancePaths.order_list); + route(InstancePaths.bank_list); }} /> </Fragment> diff --git a/packages/merchant-backoffice-ui/src/paths/admin/create/index.tsx b/packages/merchant-backoffice-ui/src/paths/admin/create/index.tsx index 23f41ecff..2de019276 100644 --- a/packages/merchant-backoffice-ui/src/paths/admin/create/index.tsx +++ b/packages/merchant-backoffice-ui/src/paths/admin/create/index.tsx @@ -62,7 +62,7 @@ export default function Create({ onBack, onConfirm, forceId }: Props): VNode { } else { updateToken(undefined) } - } + } onConfirm(); } catch (ex) { if (ex instanceof Error) { |