aboutsummaryrefslogtreecommitdiff
path: root/packages/merchant-backoffice-ui
diff options
context:
space:
mode:
authorSebastian <sebasjm@gmail.com>2024-02-21 16:06:26 -0300
committerSebastian <sebasjm@gmail.com>2024-02-21 16:06:26 -0300
commitf5b14b774e3c7f4e240082fac00b1be0a622b096 (patch)
treedeeca348fbf3a134fb7690f5cbe46045960849b1 /packages/merchant-backoffice-ui
parent27a1d3216f8562bedddb999c0d35b074f751d49b (diff)
fix #8473
Diffstat (limited to 'packages/merchant-backoffice-ui')
-rw-r--r--packages/merchant-backoffice-ui/src/AdminRoutes.tsx3
-rw-r--r--packages/merchant-backoffice-ui/src/InstanceRoutes.tsx2
-rw-r--r--packages/merchant-backoffice-ui/src/paths/admin/create/index.tsx2
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) {