From 19de22d4df587e14779f330ecd1f737e494d8d56 Mon Sep 17 00:00:00 2001 From: Trung-Tin Pham <60747384+AtelyPham@users.noreply.github.com> Date: Fri, 6 Oct 2023 03:51:53 +0700 Subject: [PATCH] chore: remove Substrate anchor and fix UI issue --- apps/bridge-dapp/src/hooks/useConnectButtonProps.ts | 4 ++-- libs/dapp-config/src/anchors/anchor-config.ts | 5 ----- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/apps/bridge-dapp/src/hooks/useConnectButtonProps.ts b/apps/bridge-dapp/src/hooks/useConnectButtonProps.ts index 8912cc88be..45322a4bb3 100644 --- a/apps/bridge-dapp/src/hooks/useConnectButtonProps.ts +++ b/apps/bridge-dapp/src/hooks/useConnectButtonProps.ts @@ -52,8 +52,8 @@ function useConnectButtonProps(typedChainId?: number | null) { } if (activeWallet && nextChain.wallets.includes(activeWallet.id)) { - await switchChain(nextChain, activeWallet); - return true; + const newApi = await switchChain(nextChain, activeWallet); + return Boolean(newApi); } else { toggleModal(true, nextChain); return false; diff --git a/libs/dapp-config/src/anchors/anchor-config.ts b/libs/dapp-config/src/anchors/anchor-config.ts index 425abb5978..3abc195849 100644 --- a/libs/dapp-config/src/anchors/anchor-config.ts +++ b/libs/dapp-config/src/anchors/anchor-config.ts @@ -65,11 +65,6 @@ export const anchorDeploymentBlock: Record> = { }, ...localAnchorRecord, - - // Substrate - [PresetTypedChainId.LocalTangleStandalone]: { - '1': NaN, - }, }; export const parsedAnchorConfig = Object.keys(anchorDeploymentBlock).reduce(