From 072ac43b9f69807b8514eb11f8214637561a2573 Mon Sep 17 00:00:00 2001
From: Sebastian <sebasjm@gmail.com>
Date: Thu, 4 Apr 2024 16:24:55 -0300
Subject: fix some API differences including whatwg-url params

---
 packages/merchant-backoffice-ui/src/paths/instance/update/index.tsx | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

(limited to 'packages/merchant-backoffice-ui/src/paths/instance/update/index.tsx')

diff --git a/packages/merchant-backoffice-ui/src/paths/instance/update/index.tsx b/packages/merchant-backoffice-ui/src/paths/instance/update/index.tsx
index b5319bc2d..4afc400f8 100644
--- a/packages/merchant-backoffice-ui/src/paths/instance/update/index.tsx
+++ b/packages/merchant-backoffice-ui/src/paths/instance/update/index.tsx
@@ -45,15 +45,15 @@ export interface Props {
 
 export default function Update(props: Props): VNode {
   const { lib } = useMerchantApiContext();
-  const updateInstance = lib.management.updateCurrentInstance.bind(lib.management)
+  const updateInstance = lib.instance.updateCurrentInstance.bind(lib.instance)
   const result = useInstanceDetails();
   return CommonUpdate(props, result, updateInstance,);
 }
 
 export function AdminUpdate(props: Props & { instanceId: string }): VNode {
   const { lib } = useMerchantApiContext();
-  const t = lib.instance(props.instanceId)
-  const updateInstance = lib.instance(props.instanceId).updateCurrentInstance.bind(t)
+  const t = lib.subInstanceApi(props.instanceId).instance;
+  const updateInstance = t.updateCurrentInstance.bind(t)
   const result = useManagedInstanceDetails(props.instanceId);
   return CommonUpdate(props, result, updateInstance,);
 }
-- 
cgit v1.2.3

