From 98bdb8b24838186de4fe144a50d60e2b162b2e2b Mon Sep 17 00:00:00 2001 From: jackie <1121@generative.xyz> Date: Fri, 13 Sep 2024 13:58:08 +0700 Subject: [PATCH 1/2] update position --- .../blockchains/Buy/hooks/useAutoUpdateNodePosition.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/modules/blockchains/Buy/hooks/useAutoUpdateNodePosition.ts b/src/modules/blockchains/Buy/hooks/useAutoUpdateNodePosition.ts index 052e89f6a..c6caafbd5 100644 --- a/src/modules/blockchains/Buy/hooks/useAutoUpdateNodePosition.ts +++ b/src/modules/blockchains/Buy/hooks/useAutoUpdateNodePosition.ts @@ -16,17 +16,17 @@ const useAutoUpdateNodePosition = () => { const timeoutRef = React.useRef(null); const update = async () => { - if (!isOwnerChain) return; + // if (!isOwnerChain) return; const promises: any[] = []; nodes.forEach((node: AppNode) => { const _node = node as unknown as AppNode; - if (_node.data.node !== 'dapp' || !l2ServiceUserAddress) return; + if (_node.data.node != 'template' || !l2ServiceUserAddress) return; const { data } = _node as DappNode; - if (data.dapp.isDefaultDapp || !!!data.positionId) return; + if (data.dapp?.isDefaultDapp || !!!data.positionId) return; promises.push( dappApi.updatePosition({ From 3a96857b66530a00e632f62c2ec9ad45c7273c85 Mon Sep 17 00:00:00 2001 From: jackie <1121@generative.xyz> Date: Fri, 13 Sep 2024 13:59:09 +0700 Subject: [PATCH 2/2] update --- src/modules/blockchains/Buy/hooks/useAutoUpdateNodePosition.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/blockchains/Buy/hooks/useAutoUpdateNodePosition.ts b/src/modules/blockchains/Buy/hooks/useAutoUpdateNodePosition.ts index c6caafbd5..1c585703d 100644 --- a/src/modules/blockchains/Buy/hooks/useAutoUpdateNodePosition.ts +++ b/src/modules/blockchains/Buy/hooks/useAutoUpdateNodePosition.ts @@ -16,7 +16,7 @@ const useAutoUpdateNodePosition = () => { const timeoutRef = React.useRef(null); const update = async () => { - // if (!isOwnerChain) return; + if (!isOwnerChain) return; const promises: any[] = [];